projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add ffmpeg indexing
[goodguy/history.git]
/
cinelerra-5.0
/
cinelerra
/
fileac3.C
diff --git
a/cinelerra-5.0/cinelerra/fileac3.C
b/cinelerra-5.0/cinelerra/fileac3.C
index 44cc26104108c76821e003aecba321a8fc5ccdd7..a072e9c0c25fef406dfaaec971bfa78cdad132d7 100644
(file)
--- 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 "file.h"
#include "filempeg.h"
#include "language.h"
-#include "mwindow.inc"
#include "mainerror.h"
#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 ) {
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);
}
}
av_packet_free_side_data(&avpkt);