mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
Do not change codec in flv streams if the user has forced a codec.
Fixes ticket #2218.
This commit is contained in:
parent
5a67e30b1c
commit
6a50e8a190
@ -713,13 +713,13 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
st = s->streams[i];
|
||||
if (stream_type == FLV_STREAM_TYPE_AUDIO) {
|
||||
if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO &&
|
||||
flv_same_audio_codec(st->codec, flags)) {
|
||||
(s->audio_codec_id || flv_same_audio_codec(st->codec, flags))) {
|
||||
break;
|
||||
}
|
||||
} else
|
||||
if (stream_type == FLV_STREAM_TYPE_VIDEO) {
|
||||
if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO &&
|
||||
flv_same_video_codec(st->codec, flags)) {
|
||||
(s->video_codec_id || flv_same_video_codec(st->codec, flags))) {
|
||||
break;
|
||||
}
|
||||
} else if (stream_type == FLV_STREAM_TYPE_DATA) {
|
||||
|
Loading…
Reference in New Issue
Block a user