examples/muxing: check on frame

Fix crash in case frame is not defined (e.g. with muxing out.wav).
pull/6/merge
Stefano Sabatini 13 years ago
parent d6196d9421
commit eda0a52bf1
  1. 3
      doc/examples/muxing.c

@ -467,7 +467,8 @@ int main(int argc, char **argv)
return 1;
}
frame->pts = 0;
if (frame)
frame->pts = 0;
for (;;) {
/* Compute current audio and video time. */
if (audio_st)

Loading…
Cancel
Save