Revision cb37931d libavformat/rm.c

View differences:

libavformat/rm.c
761 761

  
762 762
//                av_log(NULL, AV_LOG_DEBUG, "fps= %d fps2= %d\n", fps, fps2);
763 763
                st->codec->time_base.den = fps * st->codec->time_base.num;
764
                /* modification of h263 codec version (!) */
765
#ifdef WORDS_BIGENDIAN
766
                h263_hack_version = ((uint32_t*)st->codec->extradata)[1];
767
#else
768
                h263_hack_version = bswap_32(((uint32_t*)st->codec->extradata)[1]);
769
#endif
770
                st->codec->sub_id = h263_hack_version;
771
                switch((h263_hack_version>>28)){
764
                switch(((uint8_t*)st->codec->extradata)[4]>>4){
772 765
                case 1: st->codec->codec_id = CODEC_ID_RV10; break;
773 766
                case 2: st->codec->codec_id = CODEC_ID_RV20; break;
774 767
                case 3: st->codec->codec_id = CODEC_ID_RV30; break;

Also available in: Unified diff