|
|
|
@@ -437,15 +437,9 @@ static int h264_metadata_filter(AVBSFContext *bsf, AVPacket *pkt) |
|
|
|
|
|
|
|
for (j = sei->payload_count - 1; j >= 0; j--) { |
|
|
|
if (sei->payload[j].payload_type == |
|
|
|
H264_SEI_TYPE_FILLER_PAYLOAD) { |
|
|
|
err = ff_cbs_h264_delete_sei_message(ctx->cbc, au, |
|
|
|
&au->units[i], j); |
|
|
|
if (err < 0) { |
|
|
|
av_log(bsf, AV_LOG_ERROR, "Failed to delete " |
|
|
|
"filler SEI message.\n"); |
|
|
|
goto fail; |
|
|
|
} |
|
|
|
} |
|
|
|
H264_SEI_TYPE_FILLER_PAYLOAD) |
|
|
|
ff_cbs_h264_delete_sei_message(ctx->cbc, au, |
|
|
|
&au->units[i], j); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@@ -469,13 +463,8 @@ static int h264_metadata_filter(AVBSFContext *bsf, AVPacket *pkt) |
|
|
|
|
|
|
|
if (ctx->display_orientation == REMOVE || |
|
|
|
ctx->display_orientation == INSERT) { |
|
|
|
err = ff_cbs_h264_delete_sei_message(ctx->cbc, au, |
|
|
|
&au->units[i], j); |
|
|
|
if (err < 0) { |
|
|
|
av_log(bsf, AV_LOG_ERROR, "Failed to delete " |
|
|
|
"display orientation SEI message.\n"); |
|
|
|
goto fail; |
|
|
|
} |
|
|
|
ff_cbs_h264_delete_sei_message(ctx->cbc, au, |
|
|
|
&au->units[i], j); |
|
|
|
continue; |
|
|
|
} |
|
|
|
|
|
|
|
|