On 2018-12-14 10:38 a.m., Gonzalo Garramuno wrote:


El vie., dic. 14, 2018 11:57, drwho <[email protected] <mailto:[email protected]>> escribió:

    Hello,

    (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)

    in loop after calling avcodec_decode_audio4()
    qDebug() << frame->nb_samples << codecContext->frame_size;
    output......
    4608 0
    4608 0
    4608 0
    4608 0

    Is this behavior normal or am I doing something wrong?


I believe the behavior is normal. The demuxer caches several frames before returning a proper value (a proper frame).
Thank you for confirming this behavior.
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to