mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-30 13:50:50 +08:00
avformat/rpl: use avpriv_report_missing_feature/avpriv_request_sample
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -168,9 +168,8 @@ static int rpl_read_header(AVFormatContext *s)
|
||||
vst->codec->codec_id = AV_CODEC_ID_ESCAPE130;
|
||||
break;
|
||||
default:
|
||||
av_log(s, AV_LOG_WARNING,
|
||||
"RPL video format %i not supported yet!\n",
|
||||
vst->codec->codec_tag);
|
||||
avpriv_report_missing_feature(s, "Video format %i",
|
||||
vst->codec->codec_tag);
|
||||
vst->codec->codec_id = AV_CODEC_ID_NONE;
|
||||
}
|
||||
|
||||
@@ -220,11 +219,8 @@ static int rpl_read_header(AVFormatContext *s)
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (ast->codec->codec_id == AV_CODEC_ID_NONE) {
|
||||
av_log(s, AV_LOG_WARNING,
|
||||
"RPL audio format %i not supported yet!\n",
|
||||
audio_format);
|
||||
}
|
||||
if (ast->codec->codec_id == AV_CODEC_ID_NONE)
|
||||
avpriv_request_sample(s, "Audio format %i", audio_format);
|
||||
avpriv_set_pts_info(ast, 32, 1, ast->codec->bit_rate);
|
||||
} else {
|
||||
for (i = 0; i < 3; i++)
|
||||
|
||||
Reference in New Issue
Block a user