[FFmpeg-devel] [PATCH] Pass on position from ffmpeg to filters

Víctor Paesa victorpaesa
Sat Jul 10 23:10:30 CEST 2010

ffplay already passes on the file position to filters, but ffmpeg does not.
I run the patched ffmpeg on the files generated by 'make test':	
for i in tests/data/lavf/lavf.*
  echo pos_$i
  ./ffmpeg -debug 1 -vframes 25 -i $i -vf null -y a.avi 2>&1 </dev/null
done | grep pos

For ASF, DV, FLV, GXF, MXF, SWF, y4m, the content of ist->st->cur_pkt.pos
does not look a reliable position.

Thanks in advance for your review,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg.pos.1.diff
Type: application/octet-stream
Size: 2356 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100710/b144d2f8/attachment.obj>

More information about the ffmpeg-devel mailing list