[Libav-user] frame_size in AVCodecContext is zero when decoding flac
Carl Eugen Hoyos
ceffmpeg at gmail.com
Fri Dec 14 18:33:29 EET 2018
2018-12-14 17:31 GMT+01:00, drwho <drwho at infidigm.net>:
> On 2018-12-14 10:47 a.m., Carl Eugen Hoyos wrote:
>> 2018-12-14 15:57 GMT+01:00, drwho <drwho at infidigm.net>:
>>
>>> (using libavcodec.so.57.64.101)
>>> It appears that the frame_size element in AVCodecContext is not
>>> guaranteed to be none zero either before or after decoding of the first
>>> frame. (it is set before decoding the first frame for mp3)
>> The frame size for mp3 is known, for flac it has to be determined.
>>
>> Are you using the flac parser in your code?
>
> I'm not sure if I am using the flac parser.
I believe you should: Input frames can have arbitrary size which
breaks decoding without the parser.
(Or it would just fix the issue you see and was originally for seeking,
don't remember atm.)
Carl Eugen
More information about the Libav-user
mailing list