mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
sauce: test filetype correctly for datatype 5 (binary text)
This commit is contained in:
parent
58f30175e1
commit
5c78a8129c
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user