Mercurial > libavformat.hg
changeset 1344:770363b669aa libavformat
dont set sub_id as its completly redundant and silly
author | michael |
---|---|
date | Sat, 30 Sep 2006 11:50:03 +0000 |
parents | 32230618fd3d |
children | 0a74030d9dd7 |
files | rm.c |
diffstat | 1 files changed, 1 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/rm.c Fri Sep 29 14:28:55 2006 +0000 +++ b/rm.c Sat Sep 30 11:50:03 2006 +0000 @@ -761,14 +761,7 @@ // av_log(NULL, AV_LOG_DEBUG, "fps= %d fps2= %d\n", fps, fps2); st->codec->time_base.den = fps * st->codec->time_base.num; - /* modification of h263 codec version (!) */ -#ifdef WORDS_BIGENDIAN - h263_hack_version = ((uint32_t*)st->codec->extradata)[1]; -#else - h263_hack_version = bswap_32(((uint32_t*)st->codec->extradata)[1]); -#endif - st->codec->sub_id = h263_hack_version; - switch((h263_hack_version>>28)){ + switch(((uint8_t*)st->codec->extradata)[4]>>4){ case 1: st->codec->codec_id = CODEC_ID_RV10; break; case 2: st->codec->codec_id = CODEC_ID_RV20; break; case 3: st->codec->codec_id = CODEC_ID_RV30; break;