From 259a3e70ed828d85f0e588f90e73350a923c9cbc Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sun, 17 Apr 2011 23:42:10 +0200 Subject: [PATCH 1/3] ptx: Use av_log_ask_for_sample() where appropriate. --- libavcodec/ptx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/ptx.c b/libavcodec/ptx.c index fb8b0d82cc..94f16565a6 100644 --- a/libavcodec/ptx.c +++ b/libavcodec/ptx.c @@ -51,14 +51,14 @@ static int ptx_decode_frame(AVCodecContext *avctx, void *data, int *data_size, bytes_per_pixel = AV_RL16(buf+12) >> 3; if (bytes_per_pixel != 2) { - av_log(avctx, AV_LOG_ERROR, "image format is not rgb15, please report on ffmpeg-users mailing list\n"); + av_log_ask_for_sample(avctx, "Image format is not RGB15.\n"); return -1; } avctx->pix_fmt = PIX_FMT_RGB555; if (offset != 0x2c) - av_log(avctx, AV_LOG_WARNING, "offset != 0x2c, untested due to lack of sample files\n"); + av_log_ask_for_sample(avctx, "offset != 0x2c\n"); buf += offset; From 0b5ae1fdd31ace06b507350128c6d15384e8f3df Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sun, 17 Apr 2011 19:48:27 +0200 Subject: [PATCH 2/3] asfdec: Remove dead code from asf_read_close(). --- libavformat/asfdec.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c index 36e9efad75..8dc5291ff1 100644 --- a/libavformat/asfdec.c +++ b/libavformat/asfdec.c @@ -1132,12 +1132,8 @@ static void asf_reset_header(AVFormatContext *s) static int asf_read_close(AVFormatContext *s) { - int i; - asf_reset_header(s); - for(i=0;inb_streams;i++) { - AVStream *st = s->streams[i]; - } + return 0; } From f0a41afd8a37ebe972436fabfa3d289178bbd83b Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sun, 17 Apr 2011 20:13:59 +0200 Subject: [PATCH 3/3] Replace mplayerhq.hu URLs by libav.org. --- libavcodec/nellymoserenc.c | 2 +- libavcodec/svq3.c | 2 +- libavcodec/utils.c | 2 +- libavformat/flic.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/nellymoserenc.c b/libavcodec/nellymoserenc.c index 586443dd15..676e30670a 100644 --- a/libavcodec/nellymoserenc.c +++ b/libavcodec/nellymoserenc.c @@ -28,7 +28,7 @@ * * Generic codec information: libavcodec/nellymoserdec.c * - * Some information also from: http://samples.mplayerhq.hu/A-codecs/Nelly_Moser/ASAO/ASAO.zip + * Some information also from: http://samples.libav.org/A-codecs/Nelly_Moser/ASAO/ASAO.zip * (Copyright Joseph Artsimovich and UAB "DKD") * * for more information about nellymoser format, visit: diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c index 5886713b28..50c5d22fe4 100644 --- a/libavcodec/svq3.c +++ b/libavcodec/svq3.c @@ -37,7 +37,7 @@ * * You will know you have these parameters passed correctly when the decoder * correctly decodes this file: - * http://samples.mplayerhq.hu/V-codecs/SVQ3/Vertical400kbit.sorenson3.mov + * http://samples.libav.org/V-codecs/SVQ3/Vertical400kbit.sorenson3.mov */ #include "internal.h" #include "dsputil.h" diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 857538868d..6d31254afb 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1204,7 +1204,7 @@ void av_log_ask_for_sample(void *avc, const char *msg) if (msg) av_log(avc, AV_LOG_WARNING, "%s ", msg); av_log(avc, AV_LOG_WARNING, "If you want to help, upload a sample " - "of this file to ftp://upload.libav.org/MPlayer/incoming/ " + "of this file to ftp://upload.libav.org/incoming/ " "and contact the libav-devel mailing list.\n"); } diff --git a/libavformat/flic.c b/libavformat/flic.c index 4b59398222..fcdf4c8040 100644 --- a/libavformat/flic.c +++ b/libavformat/flic.c @@ -117,7 +117,7 @@ static int flic_read_header(AVFormatContext *s, if (!st->codec->width || !st->codec->height) { /* Ugly hack needed for the following sample: */ - /* http://samples.mplayerhq.hu/fli-flc/fli-bugs/specular.flc */ + /* http://samples.libav.org/fli-flc/fli-bugs/specular.flc */ av_log(s, AV_LOG_WARNING, "File with no specified width/height. Trying 640x480.\n"); st->codec->width = 640;