[FFmpeg-devel] [PATCH 3/3] nsvdec: add "nsv" to extensions and stop manually checking for it

François Revol revol
Fri Nov 12 18:39:59 CET 2010


Le 12 nov. 2010 ? 18:18, Anton Khirnov a ?crit :

> ---
> libavformat/nsvdec.c |    4 +---
> 1 files changed, 1 insertions(+), 3 deletions(-)
> 
> diff --git a/libavformat/nsvdec.c b/libavformat/nsvdec.c
> index 44e5097..e028d91 100644
> --- a/libavformat/nsvdec.c
> +++ b/libavformat/nsvdec.c
> @@ -767,9 +767,6 @@ static int nsv_probe(AVProbeData *p)
>             p->buf[i+2] == 'V' && p->buf[i+3] == 's')
>             return AVPROBE_SCORE_MAX-20;
>     }
> -    /* so we'll have more luck on extension... */
> -    if (av_match_ext(p->filename, "nsv"))
> -        return AVPROBE_SCORE_MAX/2;
>     /* FIXME: add mime-type check */
>     return 0;
> }
> @@ -783,4 +780,5 @@ AVInputFormat nsv_demuxer = {
>     nsv_read_packet,
>     nsv_read_close,
>     nsv_read_seek,
> +    .extensions = "nsv",
> };
> -- 
> 1.7.2.3

Looks ok if it's tested globally.

Fran?ois.



More information about the ffmpeg-devel mailing list