[FFmpeg-cvslog] sauce: test filetype correctly for datatype 5 (binary text)

Peter Ross git at videolan.org
Fri Dec 14 06:47:30 CET 2012


ffmpeg | branch: master | Peter Ross <pross at xvid.org> | Fri Dec 14 10:06:15 2012 +1100| [5c78a8129c4bac2ae0c12d90672799325bc01e96] | committer: Peter Ross

sauce: test filetype correctly for datatype 5 (binary text)

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

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

diff --git a/libavformat/sauce.c b/libavformat/sauce.c
index 21cc95b..a2347b0 100644
--- a/libavformat/sauce.c
+++ b/libavformat/sauce.c
@@ -71,7 +71,7 @@ int ff_sauce_read(AVFormatContext *avctx, uint64_t *fsize, int *got_width, int g
             if (get_height && t2)
                 avctx->streams[0]->codec->height = t2<<4;
         } else if (datatype == 5) {
-            if (filetype > 1) {
+            if (filetype) {
                 avctx->streams[0]->codec->width = (filetype == 1 ? t1 : filetype) << 4;
                 *got_width = 1;
             }



More information about the ffmpeg-cvslog mailing list