You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avcodec/mpegvideodec: Remove size expectation from ff_mpv_reconstruct_mb
In the common case of decoding 420 content, only six blocks are used and it makes perfect sense for the caller to only have that many. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@ -1083,7 +1083,7 @@ static av_cold void debug_dct_coeffs(MPVContext *s, const int16_t block[][64])
|
||||
}
|
||||
}
|
||||
|
||||
void ff_mpv_reconstruct_mb(MpegEncContext *s, int16_t block[12][64])
|
||||
void ff_mpv_reconstruct_mb(MPVContext *s, int16_t block[][64])
|
||||
{
|
||||
const int mb_xy = s->mb_y * s->mb_stride + s->mb_x;
|
||||
uint8_t *mbskip_ptr = &s->mbskip_table[mb_xy];
|
||||
|
@ -56,7 +56,7 @@ int ff_mpv_frame_start(MpegEncContext *s, AVCodecContext *avctx);
|
||||
* Ensure that the dummy frames are allocated according to pict_type if necessary.
|
||||
*/
|
||||
int ff_mpv_alloc_dummy_frames(MpegEncContext *s);
|
||||
void ff_mpv_reconstruct_mb(MpegEncContext *s, int16_t block[12][64]);
|
||||
void ff_mpv_reconstruct_mb(MPVContext *s, int16_t block[][64]);
|
||||
void ff_mpv_frame_end(MpegEncContext *s);
|
||||
|
||||
int ff_mpv_export_qp_table(const MpegEncContext *s, AVFrame *f,
|
||||
|
Reference in New Issue
Block a user