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

This commit is contained in:
Peter Ross 2012-12-14 10:06:15 +11:00
parent 58f30175e1
commit 5c78a8129c

View File

@ -71,7 +71,7 @@ int ff_sauce_read(AVFormatContext *avctx, uint64_t *fsize, int *got_width, int g
if (get_height && t2) if (get_height && t2)
avctx->streams[0]->codec->height = t2<<4; avctx->streams[0]->codec->height = t2<<4;
} else if (datatype == 5) { } else if (datatype == 5) {
if (filetype > 1) { if (filetype) {
avctx->streams[0]->codec->width = (filetype == 1 ? t1 : filetype) << 4; avctx->streams[0]->codec->width = (filetype == 1 ? t1 : filetype) << 4;
*got_width = 1; *got_width = 1;
} }