Browse Source

mxfenc: always assume long gop

Checking the codec context parameters to find out this information is
far too unreliable to be useful, so it is safer to assume B-frames are
always present.
tags/n3.0
Anton Khirnov 11 years ago
parent
commit
b8b21dee0f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/mxfenc.c

+ 1
- 1
libavformat/mxfenc.c View File

@@ -1295,7 +1295,7 @@ static const UID mxf_mpeg2_codec_uls[] = {


static const UID *mxf_get_mpeg2_codec_ul(AVCodecContext *avctx) static const UID *mxf_get_mpeg2_codec_ul(AVCodecContext *avctx)
{ {
int long_gop = avctx->gop_size > 1 || avctx->has_b_frames;
int long_gop = 1;


if (avctx->profile == 4) { // Main if (avctx->profile == 4) { // Main
if (avctx->level == 8) // Main if (avctx->level == 8) // Main


Loading…
Cancel
Save