mirror of https://git.ffmpeg.org/ffmpeg.git
Merge commit '7f549b8338ed3775fec4bf10421ff5744e5866dd'
* commit '7f549b8338ed3775fec4bf10421ff5744e5866dd': riff: don't overwrite bps from WAVEFORMATEX if EXTENSIBLE doesn't contain that data. Only cosmetics, the change was already present. Merged-by: Clément Bœsch <cboesch@gopro.com>
This commit is contained in:
commit
f475405237
|
@ -61,10 +61,11 @@ enum AVCodecID ff_codec_guid_get_id(const AVCodecGuid *guids, ff_asf_guid guid)
|
||||||
static void parse_waveformatex(AVIOContext *pb, AVCodecParameters *par)
|
static void parse_waveformatex(AVIOContext *pb, AVCodecParameters *par)
|
||||||
{
|
{
|
||||||
ff_asf_guid subformat;
|
ff_asf_guid subformat;
|
||||||
int bps = avio_rl16(pb);
|
int bps;
|
||||||
|
|
||||||
|
bps = avio_rl16(pb);
|
||||||
if (bps)
|
if (bps)
|
||||||
par->bits_per_coded_sample = bps;
|
par->bits_per_coded_sample = bps;
|
||||||
|
|
||||||
par->channel_layout = avio_rl32(pb); /* dwChannelMask */
|
par->channel_layout = avio_rl32(pb); /* dwChannelMask */
|
||||||
|
|
||||||
ff_get_guid(pb, &subformat);
|
ff_get_guid(pb, &subformat);
|
||||||
|
|
Loading…
Reference in New Issue