Skip to content

Commit

Permalink
frame-writer: Track ffmpeg changes (#279)
Browse files Browse the repository at this point in the history
* frame-writer: Track ffmpeg changes

The frame_rate variable has been made private API.

* frame-writer: Remove comment
  • Loading branch information
soreau authored Oct 8, 2024
1 parent a5485cf commit 560bb92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frame-writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ void FrameWriter::init_video_filters(const AVCodec *codec)
this->videoCodecCtx->height = filter_output->h;
this->videoCodecCtx->pix_fmt = (AVPixelFormat)filter_output->format;
this->videoCodecCtx->time_base = filter_output->time_base;
this->videoCodecCtx->framerate = filter_output->frame_rate; // can be 1/0 if unknown
this->videoCodecCtx->framerate = AVRational{1,0};
this->videoCodecCtx->sample_aspect_ratio = filter_output->sample_aspect_ratio;

this->hw_frame_context = av_buffersink_get_hw_frames_ctx(
Expand Down

0 comments on commit 560bb92

Please sign in to comment.