Skip to content
Snippets Groups Projects
Commit eda0a52b authored by Stefano Sabatini's avatar Stefano Sabatini
Browse files

examples/muxing: check on frame

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