History

avformat/flvdec: fix potential premature return on audio MultichannelConfig

Timo Rothenpieler committed 1 year ago

Commit 0ed34461 parent e9de7941 file · +3 −3Browse files

Unified · Split

libavformat/flvdec.c+3−3
@@ -1275,7 +1275,7 @@ static int flv_update_video_color_info(AVFormatContext *s, AVStream *st) · 1274 unmodified lines
12751275 static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
12761276 {
12771277 FLVContext *flv = s->priv_data;
1278− int ret, i, size, flags;
1278+ int ret = 0, i, size, flags;
12791279 int res = 0;
12801280 enum FlvTagType type;
12811281 int stream_type=-1;
@@ -1613,7 +1613,7 @@ retry_duration: · 331 unmodified lines
16131613
16141614 av_log(s, AV_LOG_DEBUG, "Set channel data from MultiChannel info.\n");
16151615
1616− goto leave;
1616+ goto next_track;
16171617 }
16181618 } else if (stream_type == FLV_STREAM_TYPE_VIDEO) {
16191619 int sret = flv_set_video_codec(s, st, codec_id, 1);
@@ -1759,6 +1759,7 @@ retry_duration: · 139 unmodified lines
17591759 return ret;
17601760 res = FFERROR_REDO;
17611761
1762+next_track:
17621763 if (track_size) {
17631764 av_log(s, AV_LOG_WARNING, "Track size mismatch: %d!\n", track_size);
17641765 avio_skip(s->pb, track_size);
@@ -1768,7 +1769,6 @@ retry_duration: · 3 unmodified lines
17681769 if (!size)
17691770 break;
17701771
1771−next_track:
17721772 if (multitrack_type == MultitrackTypeOneTrack) {
17731773 av_log(s, AV_LOG_ERROR, "Attempted to read next track in single-track mode.\n");
17741774 ret = FFERROR_REDO;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t