Commit b27383e4 authored by Nicolas George's avatar Nicolas George

ffprobe: do not try to decode empty packets.

Fixes sporadic decode failures and trac ticket #997.
parent dd3043d1
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment