You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
examples/muxing: check on frame
Fix crash in case frame is not defined (e.g. with muxing out.wav).
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user