Mercurial > libavcodec.hg
diff mpeg12.c @ 1070:6da5ae9ee199 libavcodec
more #ifdef CONFIG_ENCODERS patch by (Wolfgang Hesseler <qv at multimediaware dot com>) with modifications by me (s/WOLFGANG/CONFIG_ENCODERS/ and some other fixes)
| author | michaelni |
|---|---|
| date | Sun, 16 Feb 2003 23:05:38 +0000 |
| parents | b32afefe7d33 |
| children | 01154fced380 |
line wrap: on
line diff
--- a/mpeg12.c Fri Feb 14 21:27:25 2003 +0000 +++ b/mpeg12.c Sun Feb 16 23:05:38 2003 +0000 @@ -325,6 +325,7 @@ s->c_dc_scale_table= ff_mpeg1_dc_scale_table; } +#ifdef CONFIG_ENCODERS void mpeg1_encode_picture_header(MpegEncContext *s, int picture_number) { mpeg1_encode_sequence_header(s); @@ -511,7 +512,7 @@ else { // No coded bloc pattern if (s->mv_dir == (MV_DIR_FORWARD | MV_DIR_BACKWARD)) - { // Bi-directional motion + { // Bi-directional motion put_bits(&s->pb, 2, 2); /* backward & forward motion */ mpeg1_encode_motion(s, s->mv[0][0][0] - s->last_mv[0][0][0], s->f_code); mpeg1_encode_motion(s, s->mv[0][0][1] - s->last_mv[0][0][1], s->f_code); @@ -792,6 +793,7 @@ /* end of block */ put_bits(&s->pb, 2, 0x2); } +#endif //CONFIG_ENCODERS /******************************************/ /* decoding */
