Revision d0271e8a libavformat/rm.c

View differences:

libavformat/rm.c
230 230
        } else {
231 231
            /* video codec info */
232 232
            put_be32(s,34); /* size */
233
            put_tag(s,"VIDORV10");
233
            if(stream->enc->codec_id == CODEC_ID_RV10)
234
                put_tag(s,"VIDORV10");
235
            else
236
                put_tag(s,"VIDORV20");
234 237
            put_be16(s, stream->enc->width);
235 238
            put_be16(s, stream->enc->height);
236 239
            put_be16(s, (int) stream->frame_rate); /* frames per seconds ? */
......
241 244
            /* Seems to be the codec version: only use basic H263. The next
242 245
               versions seems to add a diffential DC coding as in
243 246
               MPEG... nothing new under the sun */
244
            put_be32(s,0x10000000); 
247
            if(stream->enc->codec_id == CODEC_ID_RV10)
248
                put_be32(s,0x10000000); 
249
            else
250
                put_be32(s,0x20103001); 
245 251
            //put_be32(s,0x10003000); 
246 252
        }
247 253
    }

Also available in: Unified diff