Commit 38681a7
committed
lavc: set bitrate only if >0
Set the bitrate only if >0. Do not set if neither set explicitly nor by
the codec preset - eg. for APV avg_bpp is intentionally set to 0. The
libopenapv uses CQP by default and setting the bitrate explicitly
disables that.
Note that this setting doesn't do anything important - setting the
AVCodecContext::bitrate to 0 does nothing. This change is avoid displaying
"Setting bitrate to 0.0 bps." message.1 parent a25392b commit 38681a7
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
919 | 919 | | |
920 | 920 | | |
921 | 921 | | |
922 | | - | |
| 922 | + | |
923 | 923 | | |
924 | 924 | | |
925 | 925 | | |
| |||
0 commit comments