Skip to content
Browse files

fixed metadata filter

  • Loading branch information...
1 parent a1b70b4 commit 6cdc32ff5552e2634a0ae1e7c1a2ab1f87c69999 @elvenpath committed Jun 2, 2014
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/FFMpeg/Filters/Metadata/MetadataFilter.php
View
6 src/FFMpeg/Filters/Metadata/MetadataFilter.php
@@ -46,7 +46,9 @@ public function getPriority()
*/
public function set($field, $value)
{
- $this->metadata_fields[$field] = $value;
+ if ($value) {
+ $this->metadata_fields[$field] = $value;
+ }
return $this;
}
@@ -63,7 +65,7 @@ public function apply(Video $video, VideoInterface $format)
try {
foreach ($this->metadata_fields as $field => $value) {
$commands[] = '-metadata';
- $commands[] = $field . '="' . escapeshellarg($value) . '"';
+ $commands[] = $field . '="' . $value . '"';
}
} catch (RuntimeException $e) {

0 comments on commit 6cdc32f

Please sign in to comment.
Something went wrong with that request. Please try again.