Add a reference to avformat producer on the frame when cache miss.
Add a reference to avformat producer on the frame when cache miss.

Also adds some additional checks on null pointers.

wideioltd/mlt,anba8005/mlt,wideioltd/mlt,ttill/MLT-roto,wideioltd/mlt,zzhhui/mlt,anba8005/mlt,mltframework/mlt,siddharudh/mlt,ttill/MLT-roto-tracking,ttill/MLT-roto-tracking,xzhavilla/mlt,siddharudh/mlt,mltframework/mlt,xzhavilla/mlt,siddharudh/mlt,j-b-m/mlt,j-b-m/mlt,ttill/MLT-roto-tracking,ttill/MLT-roto,wideioltd/mlt,ttill/MLT,anba8005/mlt,gmarco/mlt-orig,anba8005/mlt,ttill/MLT,mltframework/mlt,anba8005/mlt,zzhhui/mlt,j-b-m/mlt,mltframework/mlt,wideioltd/mlt,gmarco/mlt-orig,siddharudh/mlt,mltframework/mlt,gmarco/mlt-orig,ttill/MLT-roto,xzhavilla/mlt,zzhhui/mlt,ttill/MLT,xzhavilla/mlt,siddharudh/mlt,zzhhui/mlt,ttill/MLT-roto,zzhhui/mlt,ttill/MLT-roto,ttill/MLT-roto-tracking,mltframework/mlt,j-b-m/mlt,ttill/MLT-roto,ttill/MLT-roto,ttill/MLT,wideioltd/mlt,xzhavilla/mlt,ttill/MLT-roto-tracking,xzhavilla/mlt,ttill/MLT-roto,ttill/MLT,j-b-m/mlt,gmarco/mlt-orig,zzhhui/mlt,ttill/MLT-roto-tracking,mltframework/mlt,gmarco/mlt-orig,mltframework/mlt,siddharudh/mlt,anba8005/mlt,ttill/MLT,gmarco/mlt-orig,xzhavilla/mlt,zzhhui/mlt,siddharudh/mlt,wideioltd/mlt,gmarco/mlt-orig,anba8005/mlt,ttill/MLT,j-b-m/mlt,mltframework/mlt,xzhavilla/mlt,j-b-m/mlt,ttill/MLT,zzhhui/mlt,j-b-m/mlt,ttill/MLT-roto-tracking,mltframework/mlt,siddharudh/mlt,wideioltd/mlt,xzhavilla/mlt,wideioltd/mlt,zzhhui/mlt,ttill/MLT,anba8005/mlt,gmarco/mlt-orig,ttill/MLT-roto-tracking,siddharudh/mlt,ttill/MLT-roto,j-b-m/mlt,gmarco/mlt-orig,ttill/MLT-roto-tracking,j-b-m/mlt,anba8005/mlt