We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2999a10 commit da6b2c1Copy full SHA for da6b2c1
src/modules/avformat/producer_avformat.c
@@ -1024,9 +1024,6 @@ static int setup_filters(producer_avformat self)
1024
}
1025
1026
1027
- if (self->hwaccel.device_type != AV_HWDEVICE_TYPE_NONE)
1028
- return -1;
1029
-
1030
if (!self->vfilter_graph && (self->autorotate || filtergraph) && self->video_index != -1) {
1031
AVFilterContext *last_filter = NULL;
1032
if (self->autorotate) {
@@ -1261,7 +1258,7 @@ static int producer_open(
1261
1258
if (self->audio_format && !self->audio_streams)
1262
1259
get_audio_streams_info(self);
1263
1260
1264
- if (!test_open) {
+ if (!test_open && (self->hwaccel.device_type == AV_HWDEVICE_TYPE_NONE)) {
1265
error = setup_filters(self);
1266
1267
0 commit comments