Mercurial > libavcodec.hg
changeset 1681:27a272442d6b libavcodec
fill codec info
author | bellard |
---|---|
date | Fri, 12 Dec 2003 16:55:12 +0000 |
parents | 6bd7a01eca9c |
children | 7b810155650f |
files | parser.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/parser.c Thu Dec 11 16:14:27 2003 +0000 +++ b/parser.c Fri Dec 12 16:55:12 2003 +0000 @@ -293,6 +293,8 @@ frame_rate_index = buf[3] & 0xf; pc->frame_rate = avctx->frame_rate = frame_rate_tab[frame_rate_index]; avctx->frame_rate_base = MPEG1_FRAME_RATE_BASE; + avctx->codec_id = CODEC_ID_MPEG1VIDEO; + avctx->sub_id = 1; } break; case EXT_START_CODE: @@ -311,6 +313,7 @@ avctx->height = pc->height | (vert_size_ext << 12); avctx->frame_rate = pc->frame_rate * (frame_rate_ext_n + 1); avctx->frame_rate_base = MPEG1_FRAME_RATE_BASE * (frame_rate_ext_d + 1); + avctx->codec_id = CODEC_ID_MPEG2VIDEO; avctx->sub_id = 2; /* forces MPEG2 */ } break;