mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 09:39:15 +00:00
obs-ffmpeg: Use correct function with older FFmpeg vers.
When this was being fixed up, the incorrect function name was used -- however it still compiled because the author was using the newer FFmpeg version at the time.
This commit is contained in:
parent
3114a240b4
commit
530266917d
|
@ -245,7 +245,7 @@ static void nvenc_destroy(void *data)
|
|||
if (avcodec_receive_packet(enc->context, &pkt) < 0)
|
||||
break;
|
||||
#else
|
||||
if (avcodec_receive_packet(enc->context, &pkt, NULL,
|
||||
if (avcodec_encode_video2(enc->context, &pkt, NULL,
|
||||
&r_pkt) < 0)
|
||||
break;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue