diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-10-17 13:08:53 +0400 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-10-17 23:39:13 +0400 |
commit | eda0a52bf161f9cbebbe348b7c20d4286555c4ab (patch) | |
tree | 6edd5b90c4c9600f121cecf04a81001b4c33ed54 /doc/examples/muxing.c | |
parent | d6196d9421913b8805c58b104649fc4b0917b6f3 (diff) |
examples/muxing: check on frame
Fix crash in case frame is not defined (e.g. with muxing out.wav).
Diffstat (limited to 'doc/examples/muxing.c')
-rw-r--r-- | doc/examples/muxing.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c index 22bbeca136..b143a93828 100644 --- a/doc/examples/muxing.c +++ b/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) |