Skip to content

Commit e1bea7d

Browse files
committed
Don't check MLT_AVFORMAT_HWACCEL_PPS on validating
1 parent e86527a commit e1bea7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/modules/avformat/producer_avformat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,7 @@ static int producer_open(
14691469
const char *hwaccel_env = getenv("MLT_AVFORMAT_HWACCEL");
14701470
const char *pps_env = getenv("MLT_AVFORMAT_HWACCEL_PPS");
14711471

1472-
if (pps_env && self->video_index >= 0) {
1472+
if (pps_env && self->video_index >= 0 && !test_open) {
14731473
int64_t pps_threshold = strtoll(pps_env, NULL, 10);
14741474
if (pps_threshold > 0) {
14751475
// Calculate PPS while avoiding overflow

0 commit comments

Comments
 (0)