mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Remove old_flags variable, which is a duplicate of the flags variable.
Originally committed as revision 19540 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
34bddc39b4
commit
7a4a64e7ab
@ -810,7 +810,7 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
AVStream *st;
|
||||
int i, len, res, seq = 1;
|
||||
int64_t timestamp, pos;
|
||||
int old_flags, flags;
|
||||
int flags;
|
||||
|
||||
for (;;) {
|
||||
if (rm->audio_pkt_cnt) {
|
||||
@ -836,10 +836,9 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
if(len<0 || url_feof(s->pb))
|
||||
return AVERROR(EIO);
|
||||
|
||||
old_flags = flags;
|
||||
res = ff_rm_parse_packet (s, s->pb, st, st->priv_data, len, pkt,
|
||||
&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);
|
||||
if (res)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user