Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/mpeg.c')
-rw-r--r--libavformat/mpeg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index 0d9b9fde7f..289be8caf6 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -520,13 +520,13 @@ static int mpegps_read_packet(AVFormatContext *s,
freq = (b1 >> 4) & 3;
st->codec->sample_rate = lpcm_freq_tab[freq];
st->codec->channels = 1 + (b1 & 7);
- st->codec->bits_per_sample = 16 + ((b1 >> 6) & 3) * 4;
+ st->codec->bits_per_coded_sample = 16 + ((b1 >> 6) & 3) * 4;
st->codec->bit_rate = st->codec->channels *
st->codec->sample_rate *
- st->codec->bits_per_sample;
- if (st->codec->bits_per_sample == 16)
+ st->codec->bits_per_coded_sample;
+ if (st->codec->bits_per_coded_sample == 16)
st->codec->codec_id = CODEC_ID_PCM_S16BE;
- else if (st->codec->bits_per_sample == 28)
+ else if (st->codec->bits_per_coded_sample == 28)
return AVERROR(EINVAL);
}
av_new_packet(pkt, len);