coded_block is only used for I-frames, so it is unnecessary to reset it in ff_clean_intra_table_entries() (which cleans certain tables for a non-intra MB).
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -808,7 +808,7 @@ void ff_mpv_common_end(MpegEncContext *s) · 807 unmodified lines | |||
| 808 | 808 | ||
| 809 | 809 | ||
| 810 | /** | 810 | /** |
| 811 | * Clean dc, ac, coded_block for the current non-intra MB. | 811 | * Clean dc, ac for the current non-intra MB. |
| 812 | */ | 812 | */ |
| 813 | void ff_clean_intra_table_entries(MpegEncContext *s) | 813 | void ff_clean_intra_table_entries(MpegEncContext *s) |
| 814 | { | 814 | { |
| @@ -822,12 +822,6 @@ void ff_clean_intra_table_entries(MpegEncContext *s) · 7 unmodified lines | |||
| 822 | /* ac pred */ | 822 | /* ac pred */ |
| 823 | memset(s->ac_val[0][xy ], 0, 32 * sizeof(int16_t)); | 823 | memset(s->ac_val[0][xy ], 0, 32 * sizeof(int16_t)); |
| 824 | memset(s->ac_val[0][xy + wrap], 0, 32 * sizeof(int16_t)); | 824 | memset(s->ac_val[0][xy + wrap], 0, 32 * sizeof(int16_t)); |
| 825 | if (s->msmpeg4_version>=3) { | ||
| 826 | s->coded_block[xy ] = | ||
| 827 | s->coded_block[xy + 1 ] = | ||
| 828 | s->coded_block[xy + wrap] = | ||
| 829 | s->coded_block[xy + 1 + wrap] = 0; | ||
| 830 | } | ||
| 831 | /* chroma */ | 825 | /* chroma */ |
| 832 | wrap = s->mb_stride; | 826 | wrap = s->mb_stride; |
| 833 | xy = s->mb_x + s->mb_y * wrap; | 827 | xy = s->mb_x + s->mb_y * wrap; |