[FFmpeg-devel] mpegvideo_parser outputs incomplete frames [with rough patch]

Wolfram Gloger wmglo
Wed Aug 29 23:44:56 CEST 2007


Hi,

> its not the parsers job to drop damaged frames,

Ok, that makes sense.

> for the stream copy case the initial truncated frame should be droped
> in the application doing the stream copy

I'd like to do this for ffmpeg.c but how can I detect this situation?
IMHO, the parser should not signal that all is well by filling in
s->pict_type = FF_I_TYPE;
for that first frame.
Maybe we could add FF_UNKNOWN_TYPE like in my wrong :-) patch
and then drop such frames in ffmpeg.c?

Regards,
Wolfram.




More information about the ffmpeg-devel mailing list