OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e026902
)
Use avcodec_set_dimensions()
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 23 Nov 2009 19:45:40 +0000
(19:45 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 23 Nov 2009 19:45:40 +0000
(19:45 +0000)
Originally committed as revision 20591 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h264.c
patch
|
blob
|
history
diff --git
a/libavcodec/h264.c
b/libavcodec/h264.c
index
cf6771a
..
21ea0b4
100644
(file)
--- a/
libavcodec/h264.c
+++ b/
libavcodec/h264.c
@@
-3832,8
+3832,7
@@
static int decode_slice_header(H264Context *h, H264Context *h0){
if(context_init(h->thread_context[i]) < 0)
return -1;
- s->avctx->width = s->width;
- s->avctx->height = s->height;
+ avcodec_set_dimensions(s->avctx, s->width, s->height);
s->avctx->sample_aspect_ratio= h->sps.sar;
if(!s->avctx->sample_aspect_ratio.den)
s->avctx->sample_aspect_ratio.den = 1;