[FFmpeg-devel] [PATCH] matroskadec: reset num_levels on seek.

Michael Niedermayer michaelni at gmx.at
Sun Feb 12 20:01:36 CET 2012


On Sun, Feb 12, 2012 at 02:08:05PM +0100, Reimar Döffinger wrote:
> Otherwise when we run into levels beyond the max. allowed
> playback will be permanently broken.
> 
> Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>

this is probably ok
a review from aurel would be better than from me though ...


> ---
>  libavformat/matroskadec.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
> index df54762..5c1cc87 100644
> --- a/libavformat/matroskadec.c
> +++ b/libavformat/matroskadec.c
> @@ -2067,6 +2067,7 @@ static int matroska_read_seek(AVFormatContext *s, int stream_index,
>      matroska->skip_to_keyframe = !(flags & AVSEEK_FLAG_ANY);
>      matroska->skip_to_timecode = st->index_entries[index].timestamp;
>      matroska->done = 0;
> +    matroska->num_levels = 0;
>      ff_update_cur_dts(s, st, st->index_entries[index].timestamp);
>      return 0;
>  }
> -- 
> 1.7.9
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When you are offended at any man's fault, turn to yourself and study your
own failings. Then you will forget your anger. -- Epictetus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120212/91d46fb1/attachment.asc>


More information about the ffmpeg-devel mailing list