projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d13431c
)
fix assertion failure when writing mov files
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 6 Jan 2004 21:03:41 +0000
(21:03 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 6 Jan 2004 21:03:41 +0000
(21:03 +0000)
Originally committed as revision 2673 to svn://svn.ffmpeg.org/ffmpeg/trunk
output_example.c
patch
|
blob
|
blame
|
history
diff --git
a/output_example.c
b/output_example.c
index
ca47a88
..
8f3dcd6
100644
(file)
--- a/
output_example.c
+++ b/
output_example.c
@@
-24,6
+24,7
@@
*/
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include <math.h>
#ifndef M_PI
@@
-201,6
+202,10
@@
AVStream *add_video_stream(AVFormatContext *oc, int codec_id)
/* just for testing, we also add B frames */
c->max_b_frames = 2;
}
+ // some formats want stream headers to be seperate
+ if(!strcmp(oc->oformat->name, "mp4") || !strcmp(oc->oformat->name, "mov") || !strcmp(oc->oformat->name, "3gp"))
+ c->flags |= CODEC_FLAG_GLOBAL_HEADER;
+
return st;
}