diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2003-12-12 16:55:12 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2003-12-12 16:55:12 +0000 |
commit | 3e9d718ecbf2424ba219a078d73cfa3c2ac6c169 (patch) | |
tree | 5273ee599360d7307b529bac345c85efa2f6725f /libavcodec/parser.c | |
parent | fa75ce9292ad87124feedbc9c5c8ffa4f5f99c89 (diff) | |
download | ffmpeg-3e9d718ecbf2424ba219a078d73cfa3c2ac6c169.tar.gz |
fill codec info
Originally committed as revision 2599 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/parser.c')
-rw-r--r-- | libavcodec/parser.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/parser.c b/libavcodec/parser.c index d5333b6c90..3c9cc7e9d7 100644 --- a/libavcodec/parser.c +++ b/libavcodec/parser.c @@ -293,6 +293,8 @@ static void mpegvideo_extract_headers(AVCodecParserContext *s, 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 @@ static void mpegvideo_extract_headers(AVCodecParserContext *s, 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; |