[FFmpeg-cvslog] examples/muxing: check on frame
Stefano Sabatini
git at videolan.org
Wed Oct 17 21:50:10 CEST 2012
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Wed Oct 17 11:08:53 2012 +0200| [eda0a52bf161f9cbebbe348b7c20d4286555c4ab] | committer: Stefano Sabatini
examples/muxing: check on frame
Fix crash in case frame is not defined (e.g. with muxing out.wav).
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=eda0a52bf161f9cbebbe348b7c20d4286555c4ab
---
doc/examples/muxing.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c
index 22bbeca..b143a93 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)
More information about the ffmpeg-cvslog
mailing list