mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-06 23:41:06 +00: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:
parent
d6196d9421
commit
eda0a52bf1
1 changed files with 2 additions and 1 deletions
|
@ -467,6 +467,7 @@ int main(int argc, char **argv)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (frame)
|
||||||
frame->pts = 0;
|
frame->pts = 0;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
/* Compute current audio and video time. */
|
/* Compute current audio and video time. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue