Seems to have been always unused since these functions were introduced in 1f0cd30fd9b656122436ecd625656a04f6235fb3.
Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com> --- libavcodec/mpegvideo_enc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index 03758a387d..5b6f5211cc 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -2431,7 +2431,7 @@ static av_always_inline void encode_mb(MPVEncContext *s, int motion_x, int motio } static inline void copy_context_before_encode(MPVEncContext *d, - const MPVEncContext *s, int type) + const MPVEncContext *s) { int i; @@ -2459,7 +2459,7 @@ static inline void copy_context_before_encode(MPVEncContext *d, } static inline void copy_context_after_encode(MPVEncContext *d, - const MPVEncContext *s, int type) + const MPVEncContext *s) { int i; @@ -2504,7 +2504,7 @@ static inline void encode_mb_hq(MPVEncContext *s, MPVEncContext *backup, MPVEncC int score; uint8_t *dest_backup[3]; - copy_context_before_encode(s, backup, type); + copy_context_before_encode(s, backup); s->block= s->blocks[*next_block]; s->pb= pb[*next_block]; @@ -2544,7 +2544,7 @@ static inline void encode_mb_hq(MPVEncContext *s, MPVEncContext *backup, MPVEncC *dmin= score; *next_block^=1; - copy_context_after_encode(best, s, type); + copy_context_after_encode(best, s); } } @@ -2968,7 +2968,7 @@ static int encode_thread(AVCodecContext *c, void *arg){ int next_block=0; int pb_bits_count, pb2_bits_count, tex_pb_bits_count; - copy_context_before_encode(&backup_s, s, -1); + copy_context_before_encode(&backup_s, s); backup_s.pb= s->pb; best_s.data_partitioning= s->data_partitioning; best_s.partitioned_frame= s->partitioned_frame; @@ -3202,7 +3202,7 @@ static int encode_thread(AVCodecContext *c, void *arg){ s->current_picture.qscale_table[xy] = best_s.qscale; - copy_context_after_encode(s, &best_s, -1); + copy_context_after_encode(s, &best_s); pb_bits_count= put_bits_count(&s->pb); flush_put_bits(&s->pb); -- 2.32.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".