0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

obs-outputs: Use correct variable for drop priority

There are two variables used for 'priority', the general marked frame
priority, and the drop priority.  They can sometimes be different
because some encoders don't always use the correct frame priority.
This commit is contained in:
jp9000 2016-11-13 16:29:23 -08:00
parent 66525632a0
commit c5706d726b

View File

@ -905,7 +905,7 @@ static bool add_video_packet(struct rtmp_stream *stream,
/* if currently dropping frames, drop packets until it reaches the
* desired priority */
if (packet->priority < stream->min_priority) {
if (packet->drop_priority < stream->min_priority) {
stream->dropped_frames++;
return false;
} else {