mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 10:30:05 +01:00
fftools/ffmpeg: attach bits_per_raw_sample information to frames
This way avoids encoders reaching into filters or decoders for this information.
This commit is contained in:
@@ -365,15 +365,11 @@ static int enc_stats_init(OutputStream *ost, EncStats *es, int pre,
|
||||
|
||||
c->type = fmt_specs[i].type;
|
||||
|
||||
if (fmt_specs[i].need_input_data) {
|
||||
if (ost->ist)
|
||||
ost->ist->want_frame_data = 1;
|
||||
else {
|
||||
av_log(ost, AV_LOG_WARNING,
|
||||
"Format directive '%s' is unavailable, because "
|
||||
"this output stream has no associated input stream\n",
|
||||
val);
|
||||
}
|
||||
if (fmt_specs[i].need_input_data && !ost->ist) {
|
||||
av_log(ost, AV_LOG_WARNING,
|
||||
"Format directive '%s' is unavailable, because "
|
||||
"this output stream has no associated input stream\n",
|
||||
val);
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user