Revision 85e33747 output_example.c

View differences:

output_example.c
197 197
    c->frame_rate = STREAM_FRAME_RATE;  
198 198
    c->frame_rate_base = 1;
199 199
    c->gop_size = 12; /* emit one intra frame every twelve frames at most */
200
    if (c->codec_id == CODEC_ID_MPEG1VIDEO ||
201
        c->codec_id == CODEC_ID_MPEG2VIDEO) {
200
    if (c->codec_id == CODEC_ID_MPEG2VIDEO) {
202 201
        /* just for testing, we also add B frames */
203 202
        c->max_b_frames = 2;
204 203
    }
204
    if (c->codec_id == CODEC_ID_MPEG1VIDEO){
205
        /* needed to avoid using macroblocks in which some coeffs overflow 
206
           this doesnt happen with normal video, it just happens here as the 
207
           motion of the chroma plane doesnt match the luma plane */
208
        c->mb_decision=2;
209
    }
205 210
    // some formats want stream headers to be seperate
206 211
    if(!strcmp(oc->oformat->name, "mp4") || !strcmp(oc->oformat->name, "mov") || !strcmp(oc->oformat->name, "3gp"))
207 212
        c->flags |= CODEC_FLAG_GLOBAL_HEADER;

Also available in: Unified diff