Merge "VP9: Only zero counts when !frame_parallel_decoding_mode"
This commit is contained in:
Коммит
e1fbc886e1
|
@ -1979,6 +1979,8 @@ static size_t read_uncompressed_header(VP9Decoder *pbi,
|
||||||
if (!cm->error_resilient_mode) {
|
if (!cm->error_resilient_mode) {
|
||||||
cm->refresh_frame_context = vpx_rb_read_bit(rb);
|
cm->refresh_frame_context = vpx_rb_read_bit(rb);
|
||||||
cm->frame_parallel_decoding_mode = vpx_rb_read_bit(rb);
|
cm->frame_parallel_decoding_mode = vpx_rb_read_bit(rb);
|
||||||
|
if (!cm->frame_parallel_decoding_mode)
|
||||||
|
vp9_zero(cm->counts);
|
||||||
} else {
|
} else {
|
||||||
cm->refresh_frame_context = 0;
|
cm->refresh_frame_context = 0;
|
||||||
cm->frame_parallel_decoding_mode = 1;
|
cm->frame_parallel_decoding_mode = 1;
|
||||||
|
@ -2202,8 +2204,6 @@ void vp9_decode_frame(VP9Decoder *pbi,
|
||||||
vpx_internal_error(&cm->error, VPX_CODEC_CORRUPT_FRAME,
|
vpx_internal_error(&cm->error, VPX_CODEC_CORRUPT_FRAME,
|
||||||
"Uninitialized entropy context.");
|
"Uninitialized entropy context.");
|
||||||
|
|
||||||
vp9_zero(cm->counts);
|
|
||||||
|
|
||||||
xd->corrupted = 0;
|
xd->corrupted = 0;
|
||||||
new_fb->corrupted = read_compressed_header(pbi, data, first_partition_size);
|
new_fb->corrupted = read_compressed_header(pbi, data, first_partition_size);
|
||||||
if (new_fb->corrupted)
|
if (new_fb->corrupted)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче