[FFmpeg-cvslog] avformat/nistspheredec: fix silly bug

Paul B Mahol git at videolan.org
Fri Apr 8 13:19:52 CEST 2016


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Apr  8 13:19:00 2016 +0200| [259879d32d124c60ef868e17e419c7c7c287674a] | committer: Paul B Mahol

avformat/nistspheredec: fix silly bug

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=259879d32d124c60ef868e17e419c7c7c287674a
---

 libavformat/nistspheredec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/nistspheredec.c b/libavformat/nistspheredec.c
index b95a06d..542bcd1 100644
--- a/libavformat/nistspheredec.c
+++ b/libavformat/nistspheredec.c
@@ -112,7 +112,7 @@ static int nist_read_header(AVFormatContext *s)
             sscanf(buffer, "%*s %*s %"SCNd32, &st->codec->bits_per_coded_sample);
         } else {
             char key[32], value[32];
-            if (sscanf(buffer, "%31s %*s %31s", key, value) == 3) {
+            if (sscanf(buffer, "%31s %*s %31s", key, value) == 2) {
                 av_dict_set(&s->metadata, key, value, AV_DICT_APPEND);
             } else {
                 av_log(s, AV_LOG_ERROR, "Failed to parse '%s' as metadata\n", buffer);



More information about the ffmpeg-cvslog mailing list