aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h263dec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-10-04 03:34:28 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-06-12 11:19:44 +0200
commitec1eba792aed90df5e151cb3c68e67d3d9730834 (patch)
tree4f42b643f05da0617268eb7523ab4787ba056643 /libavcodec/h263dec.c
parent3a4e7694a13edc185a00393c2e6872ff3e17756b (diff)
downloadffmpeg-ec1eba792aed90df5e151cb3c68e67d3d9730834.tar.gz
avcodec/mpegvideo: Shorten variable names
current_picture->cur_pic, last_picture->last_pic, similarly for new_picture and next_picture. Also rename the corresponding *_ptr fields. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r--libavcodec/h263dec.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index 48bd467f30..6ae634fceb 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -432,22 +432,22 @@ int ff_h263_decode_frame(AVCodecContext *avctx, AVFrame *pict,
/* no supplementary picture */
if (buf_size == 0) {
/* special case for last picture */
- if (s->low_delay == 0 && s->next_picture_ptr) {
- if ((ret = av_frame_ref(pict, s->next_picture_ptr->f)) < 0)
+ if (s->low_delay == 0 && s->next_pic_ptr) {
+ if ((ret = av_frame_ref(pict, s->next_pic_ptr->f)) < 0)
return ret;
- s->next_picture_ptr = NULL;
+ s->next_pic_ptr = NULL;
*got_frame = 1;
- } else if (s->skipped_last_frame && s->current_picture_ptr) {
+ } else if (s->skipped_last_frame && s->cur_pic_ptr) {
/* Output the last picture we decoded again if the stream ended with
* an NVOP */
- if ((ret = av_frame_ref(pict, s->current_picture_ptr->f)) < 0)
+ if ((ret = av_frame_ref(pict, s->cur_pic_ptr->f)) < 0)
return ret;
/* Copy props from the last input packet. Otherwise, props from the last
* returned picture would be reused */
if ((ret = ff_decode_frame_props(avctx, pict)) < 0)
return ret;
- s->current_picture_ptr = NULL;
+ s->cur_pic_ptr = NULL;
*got_frame = 1;
}
@@ -561,7 +561,7 @@ retry:
s->gob_index = H263_GOB_HEIGHT(s->height);
/* skip B-frames if we don't have reference frames */
- if (!s->last_picture_ptr &&
+ if (!s->last_pic_ptr &&
(s->pict_type == AV_PICTURE_TYPE_B || s->droppable))
return get_consumed_bytes(s, buf_size);
if ((avctx->skip_frame >= AVDISCARD_NONREF &&
@@ -647,21 +647,21 @@ frame_end:
if (!s->divx_packed && avctx->hwaccel)
ff_thread_finish_setup(avctx);
- av_assert1(s->current_picture.f->pict_type == s->current_picture_ptr->f->pict_type);
- av_assert1(s->current_picture.f->pict_type == s->pict_type);
+ av_assert1(s->cur_pic.f->pict_type == s->cur_pic_ptr->f->pict_type);
+ av_assert1(s->cur_pic.f->pict_type == s->pict_type);
if (s->pict_type == AV_PICTURE_TYPE_B || s->low_delay) {
- if ((ret = av_frame_ref(pict, s->current_picture_ptr->f)) < 0)
+ if ((ret = av_frame_ref(pict, s->cur_pic_ptr->f)) < 0)
return ret;
- ff_print_debug_info(s, s->current_picture_ptr, pict);
- ff_mpv_export_qp_table(s, pict, s->current_picture_ptr, FF_MPV_QSCALE_TYPE_MPEG1);
- } else if (s->last_picture_ptr) {
- if ((ret = av_frame_ref(pict, s->last_picture_ptr->f)) < 0)
+ ff_print_debug_info(s, s->cur_pic_ptr, pict);
+ ff_mpv_export_qp_table(s, pict, s->cur_pic_ptr, FF_MPV_QSCALE_TYPE_MPEG1);
+ } else if (s->last_pic_ptr) {
+ if ((ret = av_frame_ref(pict, s->last_pic_ptr->f)) < 0)
return ret;
- ff_print_debug_info(s, s->last_picture_ptr, pict);
- ff_mpv_export_qp_table(s, pict, s->last_picture_ptr, FF_MPV_QSCALE_TYPE_MPEG1);
+ ff_print_debug_info(s, s->last_pic_ptr, pict);
+ ff_mpv_export_qp_table(s, pict, s->last_pic_ptr, FF_MPV_QSCALE_TYPE_MPEG1);
}
- if (s->last_picture_ptr || s->low_delay) {
+ if (s->last_pic_ptr || s->low_delay) {
if ( pict->format == AV_PIX_FMT_YUV420P
&& (s->codec_tag == AV_RL32("GEOV") || s->codec_tag == AV_RL32("GEOX"))) {
for (int p = 0; p < 3; p++) {