git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd3043d
)
ffprobe: do not try to decode empty packets.
author
Nicolas George
<nicolas.george@normalesup.org>
Fri, 20 Apr 2012 14:17:54 +0000
(16:17 +0200)
committer
Nicolas George
<nicolas.george@normalesup.org>
Sat, 21 Apr 2012 12:02:08 +0000
(14:02 +0200)
Fixes sporadic decode failures and trac ticket #997.
ffprobe.c
patch
|
blob
|
history
diff --git
a/ffprobe.c
b/ffprobe.c
index
8a76a0b
..
43aa1c5
100644
(file)
--- a/
ffprobe.c
+++ b/
ffprobe.c
@@
-1279,7
+1279,7
@@
static void read_packets(WriterContext *w, AVFormatContext *fmt_ctx)
}
if (do_read_frames) {
pkt1 = pkt;
- while (
1
) {
+ while (
pkt1.size
) {
avcodec_get_frame_defaults(&frame);
ret = get_decoded_frame(fmt_ctx, &frame, &got_frame, &pkt1);
if (ret < 0 || !got_frame)