<div dir="ltr"><span style="font-size:13px">Hi all,</span><div style="font-size:13px"><br></div><div style="font-size:13px">I want to discard some MBs of a B-FRAME from decoding. In fact, I want to avoid some special MBs to be decoded and instead copying MBs of one of its parents. Note that no B-Frame is encoded as a reference frame. The best function for me to discard a list of MBs is:</div><span class="im" style="font-size:13px"><div><br></div><div><span style="background-color:rgb(202,215,254);color:rgb(0,0,0)">(</span>/libavcodec/h264_slice.c) <span style="background-color:rgb(202,215,254);color:rgb(0,0,0)">static int decode_slice(struct AVCodecContext *avctx, void *arg) </span></div><div class="gmail_extra"> </div></span><div class="gmail_extra" style="font-size:13px">FRAME_MBAFF(h) is false and the clip entropy is cabac. </div><div class="gmail_extra" style="font-size:13px"><br></div><div class="gmail_extra" style="font-size:13px">1)How can I disable <span style="background-color:rgb(202,215,254);color:rgb(0,0,0)">ret = ff_h264_decode_mb_cabac(h, sl); </span>and <span style="background-color:rgb(202,215,254);color:rgb(0,0,0)"> ff_h264_hl_decode_mb(h, sl)</span></div><div class="gmail_extra" style="font-size:13px"><div class="gmail_quote">for a macro block where (sl->mb_x==my_x_id && sl->mb_y==my_y_id) with no effect on decoding the rest of MBs in a B-Frame?</div><div class="gmail_quote"><br></div><div class="gmail_quote">2) If not possible, is it possible to call <span style="color:rgb(0,0,0);background-color:rgb(202,215,254)">ret = ff_h264_decode_mb_cabac(h, sl);  </span>but don't execute  <span style="color:rgb(0,0,0);background-color:rgb(202,215,254)"> ff_h264_hl_decode_mb(h, sl)  </span>for some specific MBs (again with not effects on other MBs)</div><div class="gmail_quote"><br></div><div class="gmail_quote">Thank you.</div></div></div>