mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
h264: reduce whitespace differences to libav
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
23c03ac91e
commit
4fb1221e66
@ -2983,8 +2983,7 @@ static int field_end(H264Context *h, int in_setup)
|
|||||||
* past end by one (callers fault) and resync_mb_y != 0
|
* past end by one (callers fault) and resync_mb_y != 0
|
||||||
* causes problems for the first MB line, too.
|
* causes problems for the first MB line, too.
|
||||||
*/
|
*/
|
||||||
if (CONFIG_ERROR_RESILIENCE &&
|
if (CONFIG_ERROR_RESILIENCE && !FIELD_PICTURE(h) && h->current_slice && !h->sps.new) {
|
||||||
!FIELD_PICTURE(h) && h->current_slice && !h->sps.new) {
|
|
||||||
h->er.cur_pic = h->cur_pic_ptr;
|
h->er.cur_pic = h->cur_pic_ptr;
|
||||||
ff_er_frame_end(&h->er);
|
ff_er_frame_end(&h->er);
|
||||||
}
|
}
|
||||||
@ -4758,7 +4757,9 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size,
|
|||||||
decode_rbsp_trailing(h, ptr + dst_length - 1));
|
decode_rbsp_trailing(h, ptr + dst_length - 1));
|
||||||
|
|
||||||
if (h->avctx->debug & FF_DEBUG_STARTCODE)
|
if (h->avctx->debug & FF_DEBUG_STARTCODE)
|
||||||
av_log(h->avctx, AV_LOG_DEBUG, "NAL %d/%d at %d/%d length %d pass %d\n", hx->nal_unit_type, hx->nal_ref_idc, buf_index, buf_size, dst_length, pass);
|
av_log(h->avctx, AV_LOG_DEBUG,
|
||||||
|
"NAL %d/%d at %d/%d length %d pass %d\n",
|
||||||
|
hx->nal_unit_type, hx->nal_ref_idc, buf_index, buf_size, dst_length, pass);
|
||||||
|
|
||||||
if (h->is_avc && (nalsize != consumed) && nalsize)
|
if (h->is_avc && (nalsize != consumed) && nalsize)
|
||||||
av_log(h->avctx, AV_LOG_DEBUG,
|
av_log(h->avctx, AV_LOG_DEBUG,
|
||||||
|
@ -1684,7 +1684,6 @@ decode_cabac_residual_internal(H264Context *h, int16_t *block,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#define STORE_BLOCK(type) \
|
#define STORE_BLOCK(type) \
|
||||||
do { \
|
do { \
|
||||||
uint8_t *ctx = coeff_abs_level1_ctx[node_ctx] + abs_level_m1_ctx_base; \
|
uint8_t *ctx = coeff_abs_level1_ctx[node_ctx] + abs_level_m1_ctx_base; \
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "libavutil/attributes.h"
|
#include "libavutil/attributes.h"
|
||||||
#include "libavutil/avassert.h"
|
#include "libavutil/avassert.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user