mirror of https://git.ffmpeg.org/ffmpeg.git
Check av_dup_packet() return code
Fixes: CID1338320 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
39c0b22df4
commit
f90c9c306f
|
@ -89,7 +89,9 @@ static void * attribute_align_arg worker(void *v){
|
||||||
pthread_mutex_unlock(&c->buffer_mutex);
|
pthread_mutex_unlock(&c->buffer_mutex);
|
||||||
av_frame_free(&frame);
|
av_frame_free(&frame);
|
||||||
if(got_packet) {
|
if(got_packet) {
|
||||||
av_dup_packet(pkt);
|
int ret2 = av_dup_packet(pkt);
|
||||||
|
if (ret >= 0 && ret2 < 0)
|
||||||
|
ret = ret2;
|
||||||
} else {
|
} else {
|
||||||
pkt->data = NULL;
|
pkt->data = NULL;
|
||||||
pkt->size = 0;
|
pkt->size = 0;
|
||||||
|
|
Loading…
Reference in New Issue