[FFmpeg-devel] [PATCH]fix seeking before beginning in h264 files
Michael Niedermayer
michaelni
Mon Feb 4 20:34:35 CET 2008
On Mon, Feb 04, 2008 at 07:24:18PM +0100, Anton Khirnov wrote:
> Hi,
> now if you attempt to seek before the beginning of a h.264 video, you
> will remain where you are and current frame will get borked. This
> patch should fix it.
>
> Anton Khirnov
> Index: libavformat/utils.c
> ===================================================================
> --- libavformat/utils.c (revision 11862)
> +++ libavformat/utils.c (working copy)
> @@ -1360,6 +1360,10 @@
>
> av_read_frame_flush(s);
>
> + /* fixes seeking before beginning in h264 */
> + if(timestamp < 0)
> + timestamp = 0;
> +
breaks seeking to negative timestamps -> rejected
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Complexity theory is the science of finding the exact solution to an
approximation. Benchmarking OTOH is finding an approximation of the exact
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080204/23e8e131/attachment.pgp>
More information about the ffmpeg-devel
mailing list