We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5fa1e1 commit 7f96f98Copy full SHA for 7f96f98
src/torchcodec/_core/FFMPEGCommon.cpp
@@ -7,6 +7,7 @@
7
#include "src/torchcodec/_core/FFMPEGCommon.h"
8
9
#include <c10/util/Exception.h>
10
+
11
extern "C" {
12
#include <libavfilter/avfilter.h>
13
#include <libavfilter/buffersink.h>
@@ -398,6 +399,8 @@ AVFilterContext* createBuffersinkFilter(
398
399
TORCH_CHECK(
400
sinkContext != nullptr, "Failed to allocate buffersink filter context.");
401
402
+ // When setting pix_fmts, only the first element is used, so nb_elems = 1
403
+ // AV_PIX_FMT_NONE acts as a terminator for the array in av_opt_set_int_list
404
status = av_opt_set_array(
405
sinkContext,
406
"pixel_formats",
0 commit comments