]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
[transcode]: picture type
authorlekma <lekmalek@gmail.com>
Wed, 31 Aug 2016 14:24:18 +0000 (16:24 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 28 Aug 2017 13:32:48 +0000 (15:32 +0200)
src/transcoding/transcode/video.c

index 679d672123c99097dabf0266de5e511a8d2cafcf..b46f8f2d40d4f0d18cd458672bbdc66d7bfbb77b 100644 (file)
@@ -249,11 +249,11 @@ tvh_video_context_wrap(TVHContext *self, AVPacket *avpkt, th_pkt_t *pkt)
     if (qsdata && qsdata_size >= 5) {
         pict_type = qsdata[4];
     }
-/*#if FF_API_CODED_FRAME
+#if FF_API_CODED_FRAME
     else if (self->oavctx->coded_frame) {
         pict_type = self->oavctx->coded_frame->pict_type;
     }
-#endif*/
+#endif
     switch (pict_type) {
         case AV_PICTURE_TYPE_I:
             pkt->v.pkt_frametype = PKT_I_FRAME;