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:
84f226a
)
h264: initialize cur_chroma_format_idc
author
Anton Khirnov
<anton@khirnov.net>
Sat, 21 Mar 2015 15:08:18 +0000
(16:08 +0100)
committer
Anton Khirnov
<anton@khirnov.net>
Sun, 5 Apr 2015 10:02:20 +0000
(12:02 +0200)
This makes sure the various DSP contexts get properly initialized in
ff_h264_set_parameter_from_sps() whatever the value of
raw_bits_per_sample.
libavcodec/h264.c
patch
|
blob
|
history
diff --git
a/libavcodec/h264.c
b/libavcodec/h264.c
index
660be1d
..
92541f6
100644
(file)
--- a/
libavcodec/h264.c
+++ b/
libavcodec/h264.c
@@
-604,6
+604,7
@@
av_cold int ff_h264_decode_init(AVCodecContext *avctx)
/* needed so that IDCT permutation is known early */
ff_videodsp_init(&h->vdsp, 8);
+ h->cur_chroma_format_idc = -1;
memset(h->pps.scaling_matrix4, 16, 6 * 16 * sizeof(uint8_t));
memset(h->pps.scaling_matrix8, 16, 2 * 64 * sizeof(uint8_t));