Browse Source

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

tags/n1.1
Peter Ross 13 years ago
parent
commit
5c78a8129c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/sauce.c

+ 1
- 1
libavformat/sauce.c View File

@@ -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;
}


Loading…
Cancel
Save