[FFmpeg-cvslog] h264: do not copy qscale when updating per-thread contexts

Anton Khirnov git at videolan.org
Sat Mar 21 13:34:49 CET 2015


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sat Jan 17 21:51:40 2015 +0100| [d40ae0e595fe90b5583b9269f8bb000402bde5a6] | committer: Anton Khirnov

h264: do not copy qscale when updating per-thread contexts

It's a per-slice quantity constructed when parsing the slice header.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d40ae0e595fe90b5583b9269f8bb000402bde5a6
---

 libavcodec/h264_slice.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c
index 6bdd261..d6ae9e7 100644
--- a/libavcodec/h264_slice.c
+++ b/libavcodec/h264_slice.c
@@ -544,7 +544,6 @@ int ff_h264_update_thread_context(AVCodecContext *dst,
     h->coded_picture_number = h1->coded_picture_number;
     h->first_field          = h1->first_field;
     h->picture_structure    = h1->picture_structure;
-    h->qscale               = h1->qscale;
     h->droppable            = h1->droppable;
     h->low_delay            = h1->low_delay;
 
@@ -1132,7 +1131,6 @@ static int h264_slice_header_init(H264Context *h, int reinit)
             c->uvlinesize        = h->uvlinesize;
             c->chroma_x_shift    = h->chroma_x_shift;
             c->chroma_y_shift    = h->chroma_y_shift;
-            c->qscale            = h->qscale;
             c->droppable         = h->droppable;
             c->low_delay         = h->low_delay;
             c->mb_width          = h->mb_width;



More information about the ffmpeg-cvslog mailing list