You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avcodec/mpeg12enc: Combine put_bits()
This is a 16bit field in the spec, so using a single put_bits() to write it is more natural. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@ -454,8 +454,7 @@ static int mpeg1_encode_picture_header(MPVMainEncContext *const m)
|
|||||||
|
|
||||||
put_bits(&s->pb, 1, 1); // reserved_bit
|
put_bits(&s->pb, 1, 1); // reserved_bit
|
||||||
put_bits(&s->pb, 7, fpa_type); // S3D_video_format_type
|
put_bits(&s->pb, 7, fpa_type); // S3D_video_format_type
|
||||||
put_bits(&s->pb, 8, 0x04); // reserved_data[0]
|
put_bits(&s->pb, 16, 0x04FF); // reserved_data
|
||||||
put_bits(&s->pb, 8, 0xFF); // reserved_data[1]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user