Mercurial > libavcodec.hg
comparison h263.c @ 322:ce35fd27bbb0 libavcodec
- Versions defined for libav/libavcodec.
- Bug fix in wav muxer for MP2 audio.
- ffmpeg/libavcodec version in MPEG-4 user data.
author | pulento |
---|---|
date | Mon, 15 Apr 2002 02:28:05 +0000 |
parents | 8cf5507e6ca5 |
children | 9c6f056f0e41 |
comparison
equal
deleted
inserted
replaced
321:2b00e171b1d4 | 322:ce35fd27bbb0 |
---|---|
871 } | 871 } |
872 | 872 |
873 static void mpeg4_encode_vol_header(MpegEncContext * s) | 873 static void mpeg4_encode_vol_header(MpegEncContext * s) |
874 { | 874 { |
875 int vo_ver_id=1; //must be 2 if we want GMC or q-pel | 875 int vo_ver_id=1; //must be 2 if we want GMC or q-pel |
876 | 876 char buf[255]; |
877 | |
877 if(get_bit_count(&s->pb)!=0) mpeg4_stuffing(&s->pb); | 878 if(get_bit_count(&s->pb)!=0) mpeg4_stuffing(&s->pb); |
878 put_bits(&s->pb, 16, 0); | 879 put_bits(&s->pb, 16, 0); |
879 put_bits(&s->pb, 16, 0x100); /* video obj */ | 880 put_bits(&s->pb, 16, 0x100); /* video obj */ |
880 put_bits(&s->pb, 16, 0); | 881 put_bits(&s->pb, 16, 0); |
881 put_bits(&s->pb, 16, 0x120); /* video obj layer */ | 882 put_bits(&s->pb, 16, 0x120); /* video obj layer */ |
924 put_bits(&s->pb, 1, 0); /* scalability */ | 925 put_bits(&s->pb, 1, 0); /* scalability */ |
925 | 926 |
926 mpeg4_stuffing(&s->pb); | 927 mpeg4_stuffing(&s->pb); |
927 put_bits(&s->pb, 16, 0); | 928 put_bits(&s->pb, 16, 0); |
928 put_bits(&s->pb, 16, 0x1B2); /* user_data */ | 929 put_bits(&s->pb, 16, 0x1B2); /* user_data */ |
929 put_string(&s->pb, "ffmpeg"); //FIXME append some version ... | 930 sprintf(buf, "FFmpeg v%s / libavcodec build: %s", FFMPEG_VERSION, LIBAVCODEC_BUILD_STR); |
931 put_string(&s->pb, buf); | |
930 | 932 |
931 s->no_rounding = 0; | 933 s->no_rounding = 0; |
932 } | 934 } |
933 | 935 |
934 /* write mpeg4 VOP header */ | 936 /* write mpeg4 VOP header */ |