summaryrefslogtreecommitdiff
path: root/libavcodec/dvdec.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-08-23 11:23:09 +0200
committerAnton Khirnov <anton@khirnov.net>2022-09-05 08:02:09 +0200
commitb62d41df07c627a677c69da139fd7e3710495a3a (patch)
treedae9ac7b20b68237b1591c9c84f2f2f3e152420e /libavcodec/dvdec.c
parentb6196cb2ef011f1a3278534070205b44c1e0e780 (diff)
downloadffmpeg-b62d41df07c627a677c69da139fd7e3710495a3a.tar.gz
lavc/dvdec: drop the only use of DVVideoContext.avctx
The function gets the codec context parameter directly.
Diffstat (limited to 'libavcodec/dvdec.c')
-rw-r--r--libavcodec/dvdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dvdec.c b/libavcodec/dvdec.c
index 3af3e82eab..d5ed2ca2a8 100644
--- a/libavcodec/dvdec.c
+++ b/libavcodec/dvdec.c
@@ -391,7 +391,7 @@ static int dv_decode_video_segment(AVCodecContext *avctx, void *arg)
LOCAL_ALIGNED_16(int16_t, sblock, [5 * DV_MAX_BPM], [64]);
LOCAL_ALIGNED_16(uint8_t, mb_bit_buffer, [80 + AV_INPUT_BUFFER_PADDING_SIZE]); /* allow some slack */
LOCAL_ALIGNED_16(uint8_t, vs_bit_buffer, [80 * 5 + AV_INPUT_BUFFER_PADDING_SIZE]); /* allow some slack */
- const int log2_blocksize = 3-s->avctx->lowres;
+ const int log2_blocksize = 3 - avctx->lowres;
int is_field_mode[5];
int vs_bit_buffer_damaged = 0;
int mb_bit_buffer_damaged[5] = {0};