mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
examples/muxing: provide more information in case of avcodec_open2 failure
This commit is contained in:
parent
6133149e0c
commit
59e31aa2ca
@ -98,7 +98,7 @@ static void open_audio(AVFormatContext *oc, AVCodec *codec, AVStream *st)
|
|||||||
|
|
||||||
/* open it */
|
/* open it */
|
||||||
if (avcodec_open2(c, codec, NULL) < 0) {
|
if (avcodec_open2(c, codec, NULL) < 0) {
|
||||||
fprintf(stderr, "Could not open codec\n");
|
fprintf(stderr, "Could not open audio codec\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -253,7 +253,7 @@ static void open_video(AVFormatContext *oc, AVCodec *codec, AVStream *st)
|
|||||||
|
|
||||||
/* open the codec */
|
/* open the codec */
|
||||||
if (avcodec_open2(c, codec, NULL) < 0) {
|
if (avcodec_open2(c, codec, NULL) < 0) {
|
||||||
fprintf(stderr, "Could not open codec\n");
|
fprintf(stderr, "Could not open video codec\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user