git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a373c3
)
flashv: use avcodec_set_dimensions()
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 12 Nov 2012 23:21:16 +0000
(
00:21
+0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 12 Nov 2012 23:21:45 +0000
(
00:21
+0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/flashsv.c
patch
|
blob
|
history
diff --git
a/libavcodec/flashsv.c
b/libavcodec/flashsv.c
index
ee97521
..
643dab3
100644
(file)
--- a/
libavcodec/flashsv.c
+++ b/
libavcodec/flashsv.c
@@
-304,8
+304,7
@@
static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
/* initialize the image size once */
if (avctx->width == 0 && avctx->height == 0) {
- avctx->width = s->image_width;
- avctx->height = s->image_height;
+ avcodec_set_dimensions(avctx, s->image_width, s->image_height);
}
/* check for changes of image width and image height */