---
libavformat/sauce.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libavformat/sauce.c b/libavformat/sauce.c
index a125241..335c989 100644
--- a/libavformat/sauce.c
+++ b/libavformat/sauce.c
@@ -65,18 +65,18 @@ int ff_sauce_read(AVFormatContext *avctx, uint64_t *fsize,
int *got_width, int g
if (got_width && datatype && filetype) {
if ((datatype == 1 && filetype <=2) || (datatype == 5 && filetype ==
255) || datatype == 6) {
if (t1) {
- avctx->streams[0]->codec->width = t1<<3;
+ avctx->streams[0]->codecpar->width = t1<<3;
*got_width = 1;
}
if (get_height && t2)
- avctx->streams[0]->codec->height = t2<<4;
+ avctx->streams[0]->codecpar->height = t2<<4;
} else if (datatype == 5) {
if (filetype > 1) {
- avctx->streams[0]->codec->width = (filetype == 1 ? t1 :
filetype) << 4;
+ avctx->streams[0]->codecpar->width = (filetype == 1 ? t1 :
filetype) << 4;
*got_width = 1;
}
if (get_height && t2)
- avctx->streams[0]->codec->height = t2<<4;
+ avctx->streams[0]->codecpar->height = t2<<4;
}
}
--
2.0.0
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel