Commit b0239dbd authored by rbultje's avatar rbultje

Remove old_flags variable, which is a duplicate of the flags variable.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19540 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 08ab8ec3
...@@ -810,7 +810,7 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -810,7 +810,7 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt)
AVStream *st; AVStream *st;
int i, len, res, seq = 1; int i, len, res, seq = 1;
int64_t timestamp, pos; int64_t timestamp, pos;
int old_flags, flags; int flags;
for (;;) { for (;;) {
if (rm->audio_pkt_cnt) { if (rm->audio_pkt_cnt) {
...@@ -836,10 +836,9 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -836,10 +836,9 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt)
if(len<0 || url_feof(s->pb)) if(len<0 || url_feof(s->pb))
return AVERROR(EIO); return AVERROR(EIO);
old_flags = flags;
res = ff_rm_parse_packet (s, s->pb, st, st->priv_data, len, pkt, res = ff_rm_parse_packet (s, s->pb, st, st->priv_data, len, pkt,
&seq, flags, timestamp); &seq, flags, timestamp);
if((old_flags&2) && (seq&0x7F) == 1) if((flags&2) && (seq&0x7F) == 1)
av_add_index_entry(st, pos, timestamp, 0, 0, AVINDEX_KEYFRAME); av_add_index_entry(st, pos, timestamp, 0, 0, AVINDEX_KEYFRAME);
if (res) if (res)
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment