diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-10-17 11:08:53 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-10-17 21:39:13 +0200 |
commit | eda0a52bf161f9cbebbe348b7c20d4286555c4ab (patch) | |
tree | 6edd5b90c4c9600f121cecf04a81001b4c33ed54 /doc/examples | |
parent | d6196d9421913b8805c58b104649fc4b0917b6f3 (diff) | |
download | ffmpeg-eda0a52bf161f9cbebbe348b7c20d4286555c4ab.tar.gz |
examples/muxing: check on frame
Fix crash in case frame is not defined (e.g. with muxing out.wav).
Diffstat (limited to 'doc/examples')
-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) |