Hello Yufei, > On Apr 1, 2019, at 1:21 PM, Yufei He <y...@matrox.com> wrote: > > Hi > > There may be a bug for .mp4 reader. > > On decoding some ntsc mp4 files with my h.264 codec, from actvx I received, > > avctx->framerate.den is 100 > > avctx->framerate.num is 2997 > > avctx->pkt_timebase.num is 1 > avctx->pkt_timebase.den is 2997 > > Duration of every packet I received from ff_decode_get_packet(avctx, &pkt) is > 100, which means it's a encoded frame. But actually, it's a encoded field, > it's duration should be 50.
Libavcodec doesn’t have any support for delivering individual fields. Decoders are expected to reassemble fields into frames before providing them back to callers. Presumably this is some sort of PAFF encoded stream? Does it decode properly when using the software h.264 decoder? Devin --- Devin Heitmueller - LTN Global Communications dheitmuel...@ltnglobal.com _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".