[FFmpeg-user] Revisit FFmpeg Frame Lost

Nicolas George nicolas.george at normalesup.org
Sat Feb 16 10:32:57 CET 2013


L'octidi 28 pluviôse, an CCXXI, Thilo Borgmann a écrit :
>     if (packet.stream_index == format_video_stream_idx) {
>         avcodec_get_frame_defaults(&frame);

This is unrelated to the current discussion, but this part looks suspicious
to me. How do you define frame here? The size of AVFrame is not part of the
ABI, therefore, declaring anything with type AVFrame directly is
discouraged.

>         got_frame = 0;

I believe avcodec_decode_video2() is guaranteed to init this to 0.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20130216/7dc8c995/attachment.asc>


More information about the ffmpeg-user mailing list