summaryrefslogtreecommitdiff
path: root/contrib/ffmpeg/output_example.c
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-03-01 03:05:13 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-03-01 03:05:13 +0100
commit1d0b3b20c34517b9d1ddf3ea347776304b0c4b44 (patch)
tree89f4fc640c2becc6f00ae08996754952ecf149c1 /contrib/ffmpeg/output_example.c
parent09496ad3469a0ade8dbd9a351e639b78f20b7942 (diff)
downloadxine-lib-1d0b3b20c34517b9d1ddf3ea347776304b0c4b44.tar.gz
xine-lib-1d0b3b20c34517b9d1ddf3ea347776304b0c4b44.tar.bz2
Update internal FFmpeg copy.
Diffstat (limited to 'contrib/ffmpeg/output_example.c')
-rw-r--r--contrib/ffmpeg/output_example.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/contrib/ffmpeg/output_example.c b/contrib/ffmpeg/output_example.c
index ca12b783f..36b0921d2 100644
--- a/contrib/ffmpeg/output_example.c
+++ b/contrib/ffmpeg/output_example.c
@@ -34,6 +34,8 @@
#include "avformat.h"
#include "swscale.h"
+#undef exit
+
/* 5 seconds stream duration */
#define STREAM_DURATION 5.0
#define STREAM_FRAME_RATE 25 /* 25 images/s */
@@ -215,9 +217,9 @@ static AVStream *add_video_stream(AVFormatContext *oc, int codec_id)
c->max_b_frames = 2;
}
if (c->codec_id == CODEC_ID_MPEG1VIDEO){
- /* needed to avoid using macroblocks in which some coeffs overflow
- this doesnt happen with normal video, it just happens here as the
- motion of the chroma plane doesnt match the luma plane */
+ /* Needed to avoid using macroblocks in which some coeffs overflow.
+ This does not happen with normal video, it just happens here as
+ the motion of the chroma plane does not match the luma plane. */
c->mb_decision=2;
}
// some formats want stream headers to be separate
@@ -536,7 +538,7 @@ int main(int argc, char **argv)
if (!(fmt->flags & AVFMT_NOFILE)) {
/* close the output file */
- url_fclose(&oc->pb);
+ url_fclose(oc->pb);
}
/* free the stream */