Skip to content

Commit 7c0f84f

Browse files
committed
.
1 parent 9cc01ea commit 7c0f84f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/torchcodec/decoders/_core/VideoDecoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ void VideoDecoder::initializeFilterGraphForStream(
342342
width = *options.width;
343343
height = *options.height;
344344
}
345-
std::snprintf(description, sizeof(description), "scale=%d:%d", width, height);
345+
std::snprintf(description, sizeof(description), "scale=%d:%d::sws_flags=bilinear", width, height);
346346
AVFilterInOut* outputsTmp = outputs.release();
347347
AVFilterInOut* inputsTmp = inputs.release();
348348
ffmpegStatus = avfilter_graph_parse_ptr(

0 commit comments

Comments
 (0)