[Libav-user] got_picture_ptr of avcodec_decode_video2 always returns 0 for a particular MTS file
andrey.krieger.utkin at gmail.com
Thu Feb 9 11:23:18 CET 2012
2012/2/9 Simon Daniels <simondaniels23 at gmail.com>:
> Ah - I think I know what's going on. In my real code, I was actually
> skipping over frames (intentionally). For some reason the frame that I would
> actually scan would never be available so I had assumed that none of them
> were available (my bad!).
Pity. Next time, please... well, you get the point.
> Any idea why this video has so many frames that aren't available--return
> "NOT got pic". I haven't seen that with other videos I'm tried.
I got "NOT got pic" each second frame. In my practice it is ok.
Although i don't know what this means, you can check specific decoder
module used in your file, and find out in which cases got_picture is
set to 0.
More information about the Libav-user