aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-11-26 12:14:13 +0100
committerAnton Khirnov <anton@khirnov.net>2013-11-29 14:19:47 +0100
commita5a71992cae34b321ceb8374f44ce17a945a3881 (patch)
tree78417d9379728564258b88df02053057e89f22ef
parentad09f52586eae4c5473c3a6a803d73e1ba56c0eb (diff)
downloadffmpeg-a5a71992cae34b321ceb8374f44ce17a945a3881.tar.gz
mpeg4videoenc: don't set MpegEncContext.resync_marker
It is only used in one place immediately after it is set.
-rw-r--r--libavcodec/mpeg4videoenc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/mpeg4videoenc.c b/libavcodec/mpeg4videoenc.c
index 14c9f65ee4..0063f58949 100644
--- a/libavcodec/mpeg4videoenc.c
+++ b/libavcodec/mpeg4videoenc.c
@@ -1054,8 +1054,7 @@ static void mpeg4_encode_vol_header(MpegEncContext *s,
if (vo_ver_id != 1)
put_bits(&s->pb, 1, s->quarter_sample);
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);
if (s->data_partitioning)
put_bits(&s->pb, 1, 0); /* no rvlc */