diff options
author | James Almer <jamrial@gmail.com> | 2016-05-04 18:39:27 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2016-05-04 18:39:27 -0300 |
commit | fe483ac4285408f669886df304da8d714001bb1b (patch) | |
tree | 83c40b9d6740028a12b828d3877862441b6ad0c2 /libavformat/mpegtsenc.c | |
parent | fc1c836def0859d23c7d258d177f69798120d773 (diff) | |
download | ffmpeg-fe483ac4285408f669886df304da8d714001bb1b.tar.gz |
avformat/mpegtsenc: fix usage of AVStream.codec
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/mpegtsenc.c')
-rw-r--r-- | libavformat/mpegtsenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index f33351f14e..8be24faefa 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -319,8 +319,8 @@ static int mpegts_write_pmt(AVFormatContext *s, MpegTSService *service) break; case AV_CODEC_ID_MP2: case AV_CODEC_ID_MP3: - if ( st->codec->sample_rate > 0 - && st->codec->sample_rate < 32000) { + if ( st->codecpar->sample_rate > 0 + && st->codecpar->sample_rate < 32000) { stream_type = STREAM_TYPE_AUDIO_MPEG2; } else { stream_type = STREAM_TYPE_AUDIO_MPEG1; |