mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-28 15:39:16 +00:00
Merge remote-tracking branch 'qatar/master'
* qatar/master: avc: Add a function for converting mp4 style extradata to annex b pthread: free progress if buffer allocation failed. lavc/avconv: support changing frame sizes in codecs with frame mt. libavformat: Document who sets the AVStream.id field utvideo: mark output picture as keyframe. sunrast: Add support for negative linesize. vp8: fix update_lf_deltas in libavcodec/vp8.c ralf: read Huffman code lengths without GetBitContext Conflicts: ffmpeg.c libavcodec/sunrastenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
8bf95e8bd5
10 changed files with 85 additions and 45 deletions
|
@ -646,10 +646,6 @@ int ff_thread_decode_frame(AVCodecContext *avctx,
|
|||
*picture = p->frame;
|
||||
*got_picture_ptr = p->got_frame;
|
||||
picture->pkt_dts = p->avpkt.dts;
|
||||
picture->sample_aspect_ratio = avctx->sample_aspect_ratio;
|
||||
picture->width = avctx->width;
|
||||
picture->height = avctx->height;
|
||||
picture->format = avctx->pix_fmt;
|
||||
|
||||
/*
|
||||
* A later call with avkpt->size == 0 may loop over all threads,
|
||||
|
@ -995,6 +991,10 @@ int ff_thread_get_buffer(AVCodecContext *avctx, AVFrame *f)
|
|||
ff_thread_finish_setup(avctx);
|
||||
}
|
||||
|
||||
if (err) {
|
||||
free_progress(f);
|
||||
f->thread_opaque = NULL;
|
||||
}
|
||||
pthread_mutex_unlock(&p->parent->buffer_mutex);
|
||||
|
||||
return err;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue