Skip to content

Commit

Permalink
libav: Fix parser with builds where enable_libav=false
Browse files Browse the repository at this point in the history
this fixes libcamera-vid app when libcamera-apps
is built with enable_libav=false option specified

Signed-off-by: Matus Pavelek <[email protected]>
  • Loading branch information
sismoke committed Sep 26, 2023
1 parent 87ba9f2 commit f5804d1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions core/video_options.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,11 @@ struct VideoOptions : public Options
if (Options::Parse(argc, argv) == false)
return false;

av_sync.set(av_sync_);
bitrate.set(bitrate_);
#if LIBAV_PRESENT
av_sync.set(av_sync_);
audio_bitrate.set(audio_bitrate_);

#endif /* LIBAV_PRESENT */
if (width == 0)
width = 640;
if (height == 0)
Expand Down Expand Up @@ -249,7 +250,9 @@ struct VideoOptions : public Options
}

private:
std::string av_sync_;
std::string bitrate_;
#if LIBAV_PRESENT
std::string av_sync_;
std::string audio_bitrate_;
#endif /* LIBAV_PRESENT */
};

0 comments on commit f5804d1

Please sign in to comment.