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
(from parent 1:
e9cfbc2
)
dnxhddec: stop using deprecated avcodec_set_dimensions
author
Anton Khirnov
<anton@khirnov.net>
Sun, 27 Oct 2013 09:02:26 +0000
(10:02 +0100)
committer
Anton Khirnov
<anton@khirnov.net>
Thu, 31 Oct 2013 19:14:15 +0000
(20:14 +0100)
libavcodec/dnxhddec.c
patch
|
blob
|
history
diff --git
a/libavcodec/dnxhddec.c
b/libavcodec/dnxhddec.c
index
f7b8a22
..
5c29b3e
100644
(file)
--- a/
libavcodec/dnxhddec.c
+++ b/
libavcodec/dnxhddec.c
@@
-347,9
+347,9
@@
static int dnxhd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
first_field = 1;
}
- if (av_image_check_size(ctx->width, ctx->height, 0, avctx))
- return -1;
-
avcodec_set_dimensions(avctx, ctx->width, ctx->height)
;
+ ret = ff_set_dimensions(avctx, ctx->width, ctx->height);
+ if (ret < 0)
+
return ret
;
if (first_field) {
if ((ret = ff_get_buffer(avctx, picture, 0)) < 0) {