Skip to content

Commit 9a7174c

Browse files
rcombscdecker08
authored andcommitted
mpeg2dec: avoid referencing audio_st->codec
1 parent 7250e62 commit 9a7174c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mpeg2dec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ void audio_packet_process(VideoState *is, AVPacket *pkt)
741741
// else
742742
// avcodec_get_frame_defaults(is->frame);
743743

744-
len1 = avcodec_decode_audio4(is->audio_st->codec, is->frame, &got_frame, pkt_temp);
744+
len1 = avcodec_decode_audio4(is->audio_ctx, is->frame, &got_frame, pkt_temp);
745745

746746
if (prev_codec_id != -1 && (unsigned int)prev_codec_id != is->audio_st->codecpar->codec_id)
747747
{
@@ -1069,7 +1069,7 @@ void DoSeekRequest(VideoState *is)
10691069
{
10701070
if(is->audioStream >= 0)
10711071
{
1072-
avcodec_flush_buffers(is->audio_st->codec);
1072+
avcodec_flush_buffers(is->audio_ctx);
10731073
}
10741074
if(is->videoStream >= 0)
10751075
{

0 commit comments

Comments
 (0)