mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-29 10:52:20 +00:00
Merge commit 'd246231e4714119faac6c7acd881d3b687bb8b11'
* commit 'd246231e4714119faac6c7acd881d3b687bb8b11': wavenc: use codec descriptors to get the codec name Conflicts: libavformat/wavenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
c01bcce495
@ -142,9 +142,10 @@ static int wav_write_header(AVFormatContext *s)
|
||||
/* format header */
|
||||
fmt = ff_start_tag(pb, "fmt ");
|
||||
if (ff_put_wav_header(pb, s->streams[0]->codec, 0) < 0) {
|
||||
const AVCodecDescriptor *desc = avcodec_descriptor_get(s->streams[0]->codec->codec_id);
|
||||
av_log(s, AV_LOG_ERROR, "%s codec not supported in WAVE format\n",
|
||||
s->streams[0]->codec->codec ? s->streams[0]->codec->codec->name : "NONE");
|
||||
return -1;
|
||||
desc ? desc->name : "unknown");
|
||||
return AVERROR(ENOSYS);
|
||||
}
|
||||
ff_end_tag(pb, fmt);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user