comparison flacenc.c @ 12303:bf6a00442ed0 libavcodec

Do not need to set coded_frame->key_frame = 1 because it is already set in avcodec_alloc_frame().
author jbr
date Fri, 30 Jul 2010 19:02:59 +0000
parents 2e28769c55a9
children 78275120749d
comparison
equal deleted inserted replaced
12302:2e28769c55a9 12303:bf6a00442ed0
435 s->min_framesize = s->max_framesize; 435 s->min_framesize = s->max_framesize;
436 436
437 avctx->coded_frame = avcodec_alloc_frame(); 437 avctx->coded_frame = avcodec_alloc_frame();
438 if (!avctx->coded_frame) 438 if (!avctx->coded_frame)
439 return AVERROR(ENOMEM); 439 return AVERROR(ENOMEM);
440 avctx->coded_frame->key_frame = 1;
441 440
442 dprint_compression_options(s); 441 dprint_compression_options(s);
443 442
444 return 0; 443 return 0;
445 } 444 }