aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorRoman Shaposhnik <roman@shaposhnik.org>2003-10-31 22:26:26 +0000
committerRoman Shaposhnik <roman@shaposhnik.org>2003-10-31 22:26:26 +0000
commitddaae6a9d1ea69b55b842b65e5c664b1e6d15e13 (patch)
treed239d8ef3b625cac08f0f8166ec65fe25b2e4b2d /ffmpeg.c
parent99614dd4e924c1083fdf35f49b1da95971dc416f (diff)
downloadffmpeg-ddaae6a9d1ea69b55b842b65e5c664b1e6d15e13.tar.gz
* DV demuxer is now capable of decoding auxilary audio stream. So,
everybody who still uses second streo track for dubbing can now export it. * void* -> DVDemuxContext* change (per Fabrice's suggestion). * -dv1394 capture now works in all modes. Originally committed as revision 2458 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 7c7969362c..ffa0a36f9d 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2542,6 +2542,12 @@ static void prepare_grab(void)
fprintf(stderr, "Could not find video grab device\n");
exit(1);
}
+ /* If not enough info to get the stream parameters, we decode the
+ first frames to get it. */
+ if ((ic->ctx_flags & AVFMTCTX_NOHEADER) && av_find_stream_info(ic) < 0) {
+ fprintf(stderr, "Could not find video grab parameters\n");
+ exit(1);
+ }
/* by now video grab has one stream */
ic->streams[0]->r_frame_rate = vp->frame_rate;
ic->streams[0]->r_frame_rate_base = vp->frame_rate_base;