projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change to fixed rate refresh stratigy for vicons
[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 a072e9c0c25fef406dfaaec971bfa78cdad132d7..99ba4e5cc2c921d49eab52c8cbb71c4e6d7c53e2 100644
(file)
--- a/
cinelerra-5.0/cinelerra/fileac3.C
+++ b/
cinelerra-5.0/cinelerra/fileac3.C
@@
-296,8
+296,10
@@
int FileAC3::write_samples(double **buffer, int64_t len)
file->get_audio_position() : AV_NOPTS_VALUE ;
int got_packet = 0;
ret = avcodec_encode_audio2(avctx, &avpkt, frame, &got_packet);
file->get_audio_position() : AV_NOPTS_VALUE ;
int got_packet = 0;
ret = avcodec_encode_audio2(avctx, &avpkt, frame, &got_packet);
- if( !ret ) {
- fprintf(stderr, "avcodec_encode_audio2 failed. \n%m\n");
+ if( ret < 0 ) {
+ char errmsg[BCSTRLEN];
+ av_strerror(ret, errmsg, sizeof(errmsg));
+ fprintf(stderr, "avcodec_encode_audio2 failed. \n%s\n", errmsg);
}
}
av_packet_free_side_data(&avpkt);
}
}
av_packet_free_side_data(&avpkt);