| 454 | } |
| 455 | |
| 456 | AVCodecContext *avcodec_alloc_context2(enum AVMediaType codec_type){ |
| 457 | AVCodecContext *avctx= av_malloc(sizeof(AVCodecContext)); |
| 458 | |
| 459 | if(avctx==NULL) return NULL; |
| 460 | |
| 461 | avcodec_get_context_defaults2(avctx, codec_type); |
| 462 | |
| 463 | return avctx; |
| 464 | } |
| 465 | |
| 466 | void avcodec_get_context_defaults(AVCodecContext *s){ |
| 467 | avcodec_get_context_defaults2(s, AVMEDIA_TYPE_UNKNOWN); |
no test coverage detected