comparison mpegvideo.c @ 1458:40b69d238beb libavcodec

AVI stream header FCC / more reliable detection of old xvid files
author michaelni
date Wed, 10 Sep 2003 23:40:55 +0000
parents 62c16edd18c6
children dcb784544ec6
comparison
equal deleted inserted replaced
1457:460e5ead6722 1458:40b69d238beb
368 /* convert fourcc to upper case */ 368 /* convert fourcc to upper case */
369 s->avctx->codec_tag= toupper( s->avctx->codec_tag &0xFF) 369 s->avctx->codec_tag= toupper( s->avctx->codec_tag &0xFF)
370 + (toupper((s->avctx->codec_tag>>8 )&0xFF)<<8 ) 370 + (toupper((s->avctx->codec_tag>>8 )&0xFF)<<8 )
371 + (toupper((s->avctx->codec_tag>>16)&0xFF)<<16) 371 + (toupper((s->avctx->codec_tag>>16)&0xFF)<<16)
372 + (toupper((s->avctx->codec_tag>>24)&0xFF)<<24); 372 + (toupper((s->avctx->codec_tag>>24)&0xFF)<<24);
373
374 s->avctx->stream_codec_tag= toupper( s->avctx->stream_codec_tag &0xFF)
375 + (toupper((s->avctx->stream_codec_tag>>8 )&0xFF)<<8 )
376 + (toupper((s->avctx->stream_codec_tag>>16)&0xFF)<<16)
377 + (toupper((s->avctx->stream_codec_tag>>24)&0xFF)<<24);
373 378
374 CHECKED_ALLOCZ(s->allocated_edge_emu_buffer, (s->width+64)*2*17*2); //(width + edge + align)*interlaced*MBsize*tolerance 379 CHECKED_ALLOCZ(s->allocated_edge_emu_buffer, (s->width+64)*2*17*2); //(width + edge + align)*interlaced*MBsize*tolerance
375 s->edge_emu_buffer= s->allocated_edge_emu_buffer + (s->width+64)*2*17; 380 s->edge_emu_buffer= s->allocated_edge_emu_buffer + (s->width+64)*2*17;
376 381
377 s->avctx->coded_frame= (AVFrame*)&s->current_picture; 382 s->avctx->coded_frame= (AVFrame*)&s->current_picture;
872 ff_rate_control_uninit(s); 877 ff_rate_control_uninit(s);
873 878
874 MPV_common_end(s); 879 MPV_common_end(s);
875 if (s->out_format == FMT_MJPEG) 880 if (s->out_format == FMT_MJPEG)
876 mjpeg_close(s); 881 mjpeg_close(s);
877 882
878 av_freep(&avctx->extradata); 883 av_freep(&avctx->extradata);
879 884
880 return 0; 885 return 0;
881 } 886 }
882 887