mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avformat: fix atomatic format selection for (s)segment
Fixes Ticket2236 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
356363c898
commit
ccc25378bd
1 changed files with 4 additions and 0 deletions
|
|
@ -222,6 +222,10 @@ AVOutputFormat *av_guess_format(const char *short_name, const char *filename,
|
|||
|
||||
enum AVCodecID av_guess_codec(AVOutputFormat *fmt, const char *short_name,
|
||||
const char *filename, const char *mime_type, enum AVMediaType type){
|
||||
if (!strcmp(fmt->name, "segment") || !strcmp(fmt->name, "ssegment")) {
|
||||
fmt = av_guess_format(NULL, filename, NULL);
|
||||
}
|
||||
|
||||
if(type == AVMEDIA_TYPE_VIDEO){
|
||||
enum AVCodecID codec_id= AV_CODEC_ID_NONE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue