1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00

x11-toolkits/nucleo: oops, restore size check after r425305

PR:		207547
This commit is contained in:
Jan Beich 2016-11-04 14:24:06 +00:00
parent f50e9633b6
commit 804f284b08
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=425324
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= nucleo
PORTVERSION= 0.7.6
PORTREVISION= 15
PORTREVISION= 16
CATEGORIES= x11-toolkits
MASTER_SITES= http://insitu.lri.fr/metisse/download/nucleo/

View File

@ -152,7 +152,7 @@
+
+ int got_packet = 0 ;
+ int ret = avcodec_encode_video2(cctx, &pkt, picture, &got_packet) ;
+ if (ret) {
+ if (ret < 0 || !got_packet || pkt.size <= 0) {
+ std::cerr << "ffmpegImageSink: avcodec_encode_video2 failed" << std::endl ;
stop() ;
return false ;