mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
vformat/subtitles: check av_copy_packets return code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
c042684476
commit
5c504e4df7
@ -85,7 +85,9 @@ int ff_subtitles_queue_read_packet(FFDemuxSubtitlesQueue *q, AVPacket *pkt)
|
||||
|
||||
if (q->current_sub_idx == q->nb_subs)
|
||||
return AVERROR_EOF;
|
||||
av_copy_packet(pkt, sub);
|
||||
if (av_copy_packet(pkt, sub) < 0) {
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
|
||||
pkt->dts = pkt->pts;
|
||||
q->current_sub_idx++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user