Browse Source

mpeg4videoenc: don't set MpegEncContext.resync_marker

It is only used in one place immediately after it is set.
tags/n2.2-rc1
Anton Khirnov 12 years ago
parent
commit
a5a71992ca
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavcodec/mpeg4videoenc.c

+ 1
- 2
libavcodec/mpeg4videoenc.c View File

@@ -1054,8 +1054,7 @@ static void mpeg4_encode_vol_header(MpegEncContext *s,
if (vo_ver_id != 1) if (vo_ver_id != 1)
put_bits(&s->pb, 1, s->quarter_sample); put_bits(&s->pb, 1, s->quarter_sample);
put_bits(&s->pb, 1, 1); /* complexity estimation disable */ put_bits(&s->pb, 1, 1); /* complexity estimation disable */
s->resync_marker = s->rtp_mode;
put_bits(&s->pb, 1, s->resync_marker ? 0 : 1); /* resync marker disable */
put_bits(&s->pb, 1, s->rtp_mode ? 0 : 1); /* resync marker disable */
put_bits(&s->pb, 1, s->data_partitioning ? 1 : 0); put_bits(&s->pb, 1, s->data_partitioning ? 1 : 0);
if (s->data_partitioning) if (s->data_partitioning)
put_bits(&s->pb, 1, 0); /* no rvlc */ put_bits(&s->pb, 1, 0); /* no rvlc */


Loading…
Cancel
Save