On Sun, Jan 3, 2021, at 2:25 PM, Lynne wrote: > > + /* Input sample rate (0 = unspecified) */> + bytestream_put_le32 > > (&bs, 0); > Put in 48000 here. Stream copy will preserve extradata, and we don't want to > generate weird streams, even if our decoder ignores this. > > > + /* Channel count */> + bytestream_put_byte (&bs, > > codecpar->channels);> + /* Mapping family */> + bytestream_put_byte > > (&bs, 0x0); > This will only work for mono and stereo. The decoder will error out if more > than > 2 channels are present. For now maybe error out if the number of channels is > greater than 2?
Ok! Sample rate changed to 48000. If codecpar->channels is greater than 2, AVERROR_INVALIDDATA will be returned. Please advise if there is a better error code. Thanks Lynne!
0001-ff_rtp_parse_open-builds-Opus-head-in-extradata.patch
Description: Binary data
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".