lavf/id3v2: do not export empty fields.
This also avoids a memleak. Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
		 Clément Bœsch
					Clément Bœsch
				
			
				
					committed by
					
						 Anton Khirnov
						Anton Khirnov
					
				
			
			
				
	
			
			
			 Anton Khirnov
						Anton Khirnov
					
				
			
						parent
						
							4e48aa8656
						
					
				
				
					commit
					ffdd2e9144
				
			| @@ -293,6 +293,8 @@ static void read_ttag(AVFormatContext *s, AVIOContext *pb, int taglen, const cha | ||||
|     } | ||||
|     else if (*dst) | ||||
|         dict_flags |= AV_DICT_DONT_STRDUP_VAL; | ||||
|     else | ||||
|         av_freep(&dst); | ||||
|  | ||||
|     if (dst) | ||||
|         av_dict_set(&s->metadata, key, dst, dict_flags); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user