X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.0%2Fcinelerra%2Ffileac3.C;h=a072e9c0c25fef406dfaaec971bfa78cdad132d7;hb=fa7f91658c01ba88aab006beff8b167a4bbb7085;hp=44cc26104108c76821e003aecba321a8fc5ccdd7;hpb=2d99bb8ce591f05a31464b517d85dc2bc35b2abe;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.0/cinelerra/fileac3.C b/cinelerra-5.0/cinelerra/fileac3.C index 44cc2610..a072e9c0 100644 --- a/cinelerra-5.0/cinelerra/fileac3.C +++ b/cinelerra-5.0/cinelerra/fileac3.C @@ -44,7 +44,6 @@ extern "C" #include "file.h" #include "filempeg.h" #include "language.h" -#include "mwindow.inc" #include "mainerror.h" @@ -298,10 +297,7 @@ int FileAC3::write_samples(double **buffer, int64_t len) int got_packet = 0; ret = avcodec_encode_audio2(avctx, &avpkt, frame, &got_packet); if( !ret ) { - if(got_packet && avctx->coded_frame) { - avctx->coded_frame->pts = avpkt.pts; - avctx->coded_frame->key_frame = !!(avpkt.flags & AV_PKT_FLAG_KEY); - } + fprintf(stderr, "avcodec_encode_audio2 failed. \n%m\n"); } } av_packet_free_side_data(&avpkt);