Commit eda0a52b authored by Stefano Sabatini's avatar Stefano Sabatini

examples/muxing: check on frame

Fix crash in case frame is not defined (e.g. with muxing out.wav).
parent d6196d94
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment