projects
/
libam7xxx.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4a0bd6b
)
am7xxx-play: fix a crash when a packet cannot be encoded
author
Antonio Ospite <ospite@studenti.unina.it>
Sat, 27 Jul 2013 22:50:30 +0000
(
00:50
+0200)
committer
Antonio Ospite <ospite@studenti.unina.it>
Sat, 27 Jul 2013 22:57:35 +0000
(
00:57
+0200)
examples/am7xxx-play.c
patch
|
blob
|
history
diff --git
a/examples/am7xxx-play.c
b/examples/am7xxx-play.c
index
f2e2a60
..
3230e67
100644
(file)
--- a/
examples/am7xxx-play.c
+++ b/
examples/am7xxx-play.c
@@
-440,7
+440,7
@@
static int am7xxx_play(const char *input_format_string,
}
}
end_while:
}
}
end_while:
- if (!output_ctx.raw_output)
+ if (!output_ctx.raw_output
&& got_packet
)
av_free_packet(&out_packet);
av_free_packet(&in_packet);
}
av_free_packet(&out_packet);
av_free_packet(&in_packet);
}