Revision af547ce5

View differences:

output_example.c
24 24
 */
25 25
#include <stdlib.h>
26 26
#include <stdio.h>
27
#include <string.h>
27 28
#include <math.h>
28 29

  
29 30
#ifndef M_PI
......
201 202
        /* just for testing, we also add B frames */
202 203
        c->max_b_frames = 2;
203 204
    }
205
    // some formats want stream headers to be seperate
206
    if(!strcmp(oc->oformat->name, "mp4") || !strcmp(oc->oformat->name, "mov") || !strcmp(oc->oformat->name, "3gp"))
207
        c->flags |= CODEC_FLAG_GLOBAL_HEADER;
208
    
204 209
    return st;
205 210
}
206 211

  

Also available in: Unified diff