comparison 4xm.c @ 6450:c32be43b52b2 libavcodec

remove more useless mpegvideo.h includes
author aurel
date Wed, 05 Mar 2008 00:43:11 +0000
parents 8f6749f5cd53
children 48759bfbd073
comparison
equal deleted inserted replaced
6449:208074826b34 6450:c32be43b52b2
24 * 4XM codec. 24 * 4XM codec.
25 */ 25 */
26 26
27 #include "avcodec.h" 27 #include "avcodec.h"
28 #include "dsputil.h" 28 #include "dsputil.h"
29 #include "mpegvideo.h" 29 #include "bitstream.h"
30 #include "bytestream.h" 30 #include "bytestream.h"
31 31
32 //#undef NDEBUG 32 //#undef NDEBUG
33 //#include <assert.h> 33 //#include <assert.h>
34 34
754 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); 754 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
755 return -1; 755 return -1;
756 } 756 }
757 757
758 if(frame_4cc == ff_get_fourcc("ifr2")){ 758 if(frame_4cc == ff_get_fourcc("ifr2")){
759 p->pict_type= I_TYPE; 759 p->pict_type= FF_I_TYPE;
760 if(decode_i2_frame(f, buf-4, frame_size) < 0) 760 if(decode_i2_frame(f, buf-4, frame_size) < 0)
761 return -1; 761 return -1;
762 }else if(frame_4cc == ff_get_fourcc("ifrm")){ 762 }else if(frame_4cc == ff_get_fourcc("ifrm")){
763 p->pict_type= I_TYPE; 763 p->pict_type= FF_I_TYPE;
764 if(decode_i_frame(f, buf, frame_size) < 0) 764 if(decode_i_frame(f, buf, frame_size) < 0)
765 return -1; 765 return -1;
766 }else if(frame_4cc == ff_get_fourcc("pfrm") || frame_4cc == ff_get_fourcc("pfr2")){ 766 }else if(frame_4cc == ff_get_fourcc("pfrm") || frame_4cc == ff_get_fourcc("pfr2")){
767 p->pict_type= P_TYPE; 767 p->pict_type= FF_P_TYPE;
768 if(decode_p_frame(f, buf, frame_size) < 0) 768 if(decode_p_frame(f, buf, frame_size) < 0)
769 return -1; 769 return -1;
770 }else if(frame_4cc == ff_get_fourcc("snd_")){ 770 }else if(frame_4cc == ff_get_fourcc("snd_")){
771 av_log(avctx, AV_LOG_ERROR, "ignoring snd_ chunk length:%d\n", buf_size); 771 av_log(avctx, AV_LOG_ERROR, "ignoring snd_ chunk length:%d\n", buf_size);
772 }else{ 772 }else{
773 av_log(avctx, AV_LOG_ERROR, "ignoring unknown chunk length:%d\n", buf_size); 773 av_log(avctx, AV_LOG_ERROR, "ignoring unknown chunk length:%d\n", buf_size);
774 } 774 }
775 775
776 p->key_frame= p->pict_type == I_TYPE; 776 p->key_frame= p->pict_type == FF_I_TYPE;
777 777
778 *picture= *p; 778 *picture= *p;
779 *data_size = sizeof(AVPicture); 779 *data_size = sizeof(AVPicture);
780 780
781 emms_c(); 781 emms_c();