mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-23 19:20:56 +00:00
from kcat: We can't simply get rid of this, otherwise it may break for certain kinds of packets.
This commit is contained in:
parent
9d5e7b34c6
commit
39f89f967b
3
extern/osg-ffmpeg-videoplayer/videostate.cpp
vendored
3
extern/osg-ffmpeg-videoplayer/videostate.cpp
vendored
@ -85,6 +85,9 @@ void VideoState::setAudioFactory(MovieAudioFactory *factory)
|
||||
void PacketQueue::put(AVPacket *pkt)
|
||||
{
|
||||
AVPacketList *pkt1;
|
||||
if(pkt != &flush_pkt && !pkt->buf && av_dup_packet(pkt) < 0)
|
||||
throw std::runtime_error("Failed to duplicate packet");
|
||||
|
||||
pkt1 = (AVPacketList*)av_malloc(sizeof(AVPacketList));
|
||||
if(!pkt1) throw std::bad_alloc();
|
||||
pkt1->pkt = *pkt;
|
||||
|
Loading…
x
Reference in New Issue
Block a user