summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_examiner.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-10 11:49:07 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-10 11:49:07 +0100
commit2f6167a81ab09b327eab9026d1dd40052fd7bdd0 (patch)
tree44da8f075b412ba86b9b664a6f6abc94b4b2bcf5 /src/lib/ffmpeg_examiner.cc
parent9e7697cd54968bcdec0d48781b3fb075629eecee (diff)
Fix initial display to be frame 1, not 2.
Diffstat (limited to 'src/lib/ffmpeg_examiner.cc')
-rw-r--r--src/lib/ffmpeg_examiner.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc
index f45b0fe52..ceeaee112 100644
--- a/src/lib/ffmpeg_examiner.cc
+++ b/src/lib/ffmpeg_examiner.cc
@@ -69,8 +69,6 @@ FFmpegExaminer::FFmpegExaminer (shared_ptr<const FFmpegContent> c)
int frame_finished;
avcodec_get_frame_defaults (_frame);
- cout << "got packet " << _packet.stream_index << "\n";
-
AVCodecContext* context = _format_context->streams[_packet.stream_index]->codec;
if (_packet.stream_index == _video_stream && !_first_video) {
@@ -94,11 +92,11 @@ FFmpegExaminer::FFmpegExaminer (shared_ptr<const FFmpegContent> c)
++i;
}
+ av_free_packet (&_packet);
+
if (_first_video && have_all_audio) {
break;
}
-
- av_free_packet (&_packet);
}
}