Commit 3ee83f46 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge remote-tracking branch 'qatar/master'

* qatar/master:
  lavf utils: Remove write-only variable
  lavf utils: Rename shadowing variable
  smacker: fix a few off by 1 errors
  Check for invalid VLC value in smacker decoder.
  Check and propagate errors when VLC trees cannot be built in smacker decoder.
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 205c1368 940173d4
...@@ -1742,7 +1742,6 @@ static int seek_frame_generic(AVFormatContext *s, ...@@ -1742,7 +1742,6 @@ static int seek_frame_generic(AVFormatContext *s,
return -1; return -1;
if(index < 0 || index==st->nb_index_entries-1){ if(index < 0 || index==st->nb_index_entries-1){
int i;
AVPacket pkt; AVPacket pkt;
if(st->nb_index_entries){ if(st->nb_index_entries){
...@@ -1755,12 +1754,12 @@ static int seek_frame_generic(AVFormatContext *s, ...@@ -1755,12 +1754,12 @@ static int seek_frame_generic(AVFormatContext *s,
if ((ret = avio_seek(s->pb, s->data_offset, SEEK_SET)) < 0) if ((ret = avio_seek(s->pb, s->data_offset, SEEK_SET)) < 0)
return ret; return ret;
} }
for(i=0;; i++) { for (;;) {
int ret; int read_status;
do{ do{
ret = av_read_frame(s, &pkt); read_status = av_read_frame(s, &pkt);
}while(ret == AVERROR(EAGAIN)); } while (read_status == AVERROR(EAGAIN));
if(ret<0) if (read_status < 0)
break; break;
av_free_packet(&pkt); av_free_packet(&pkt);
if(stream_index == pkt.stream_index){ if(stream_index == pkt.stream_index){
......
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