Mercurial > libavcodec.hg
comparison mpeg12.c @ 1850:dc8353e2cc5f libavcodec
forgot default chroma_format value
| author | iive |
|---|---|
| date | Tue, 02 Mar 2004 00:40:18 +0000 |
| parents | c72589baee53 |
| children | 9ecbf5d23cdc |
comparison
equal
deleted
inserted
replaced
| 1849:63eafb5b1c38 | 1850:dc8353e2cc5f |
|---|---|
| 2487 /* we set mpeg2 parameters so that it emulates mpeg1 */ | 2487 /* we set mpeg2 parameters so that it emulates mpeg1 */ |
| 2488 s->progressive_sequence = 1; | 2488 s->progressive_sequence = 1; |
| 2489 s->progressive_frame = 1; | 2489 s->progressive_frame = 1; |
| 2490 s->picture_structure = PICT_FRAME; | 2490 s->picture_structure = PICT_FRAME; |
| 2491 s->frame_pred_frame_dct = 1; | 2491 s->frame_pred_frame_dct = 1; |
| 2492 s->chroma_format = 1; | |
| 2492 s->codec_id= s->avctx->codec_id= CODEC_ID_MPEG1VIDEO; | 2493 s->codec_id= s->avctx->codec_id= CODEC_ID_MPEG1VIDEO; |
| 2493 avctx->sub_id = 1; /* indicates mpeg1 */ | 2494 avctx->sub_id = 1; /* indicates mpeg1 */ |
| 2494 if(s->flags & CODEC_FLAG_LOW_DELAY) s->low_delay=1; | 2495 if(s->flags & CODEC_FLAG_LOW_DELAY) s->low_delay=1; |
| 2495 | 2496 |
| 2496 if(s->avctx->debug & FF_DEBUG_PICT_INFO) | 2497 if(s->avctx->debug & FF_DEBUG_PICT_INFO) |
| 2545 | 2546 |
| 2546 s->progressive_sequence = 1; | 2547 s->progressive_sequence = 1; |
| 2547 s->progressive_frame = 1; | 2548 s->progressive_frame = 1; |
| 2548 s->picture_structure = PICT_FRAME; | 2549 s->picture_structure = PICT_FRAME; |
| 2549 s->frame_pred_frame_dct = 1; | 2550 s->frame_pred_frame_dct = 1; |
| 2551 s->chroma_format = 1; | |
| 2550 s->codec_id= s->avctx->codec_id= CODEC_ID_MPEG2VIDEO; | 2552 s->codec_id= s->avctx->codec_id= CODEC_ID_MPEG2VIDEO; |
| 2551 avctx->sub_id = 2; /* indicates mpeg2 */ | 2553 avctx->sub_id = 2; /* indicates mpeg2 */ |
| 2552 return 0; | 2554 return 0; |
| 2553 } | 2555 } |
| 2554 | 2556 |
