Browse Source

examples/muxing: provide more information in case of avcodec_open2 failure

tags/n1.1
Stefano Sabatini 12 years ago
parent
commit
59e31aa2ca
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      doc/examples/muxing.c

+ 2
- 2
doc/examples/muxing.c View File

@@ -98,7 +98,7 @@ static void open_audio(AVFormatContext *oc, AVCodec *codec, AVStream *st)

/* open it */
if (avcodec_open2(c, codec, NULL) < 0) {
fprintf(stderr, "Could not open codec\n");
fprintf(stderr, "Could not open audio codec\n");
exit(1);
}

@@ -253,7 +253,7 @@ static void open_video(AVFormatContext *oc, AVCodec *codec, AVStream *st)

/* open the codec */
if (avcodec_open2(c, codec, NULL) < 0) {
fprintf(stderr, "Could not open codec\n");
fprintf(stderr, "Could not open video codec\n");
exit(1);
}



Loading…
Cancel
Save