OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22c0096
)
avcodec/flashsv: stop using deprecated avcodec_set_dimensions
author
Paul B Mahol
<onemda@gmail.com>
Tue, 5 Nov 2013 12:36:24 +0000
(12:36 +0000)
committer
Paul B Mahol
<onemda@gmail.com>
Tue, 5 Nov 2013 12:36:24 +0000
(12:36 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/flashsv.c
patch
|
blob
|
history
diff --git
a/libavcodec/flashsv.c
b/libavcodec/flashsv.c
index
f9af396
..
8fbf13b
100644
(file)
--- a/
libavcodec/flashsv.c
+++ b/
libavcodec/flashsv.c
@@
-317,7
+317,8
@@
static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
/* initialize the image size once */
if (avctx->width == 0 && avctx->height == 0) {
- avcodec_set_dimensions(avctx, s->image_width, s->image_height);
+ if ((ret = ff_set_dimensions(avctx, s->image_width, s->image_height)) < 0)
+ return ret;
}
/* check for changes of image width and image height */